scrivere file

BartC bc at freeuk.com
Sun Feb 12 17:44:07 EST 2017


On 12/02/2017 21:46, Christian Gollwitzer wrote:
> Am 12.02.17 um 22:07 schrieb BartC:
>> On 12/02/2017 20:38, Christian Gollwitzer wrote:
>>> Am 12.02.17 um 21:19 schrieb Paolo:
>>>> Buonasera, è da un pò che sto cercando come esercizio di scrivere un
>>>> file al contrario.
>>>> Mi spiego meglio ho un file con N righe e vorrei scriverne un altro con
>>>> gli stessi dati ma la 1° riga deve diventare l' ultima.
>>>
>>>  tac <file1 >file2
>>>
>>> does that.
>>
>> In what language?
>
> Shell script.
>
>> In Python, I had to do something like this:
>>
>
> Thank you for doing his homework.

'google python reverse a file'

Sorry, have I done it again...?



More information about the Python-list mailing list