2
: : : 2016-01-01
3 my file.txt , :
This is my first test.
This is the second line.
This the third
This is appended file., append_file \n:
append_text='\nThis is appended file.' # "\n"
my_file=open('my file.txt','a') # 'a'=append
my_file.write(append_text)
my_file.close()
""""
This is my first test.
This is the second line.
This the third line.
This is appended file.
""""
#
- append
open('my file.txt','a')aaappend -
w
[ 2]