Append to file
- append
filename = 'data.txt'
with open(filename, 'a') as out:
out.write('append more text\n')
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
filename = 'data.txt'
with open(filename, 'a') as out:
out.write('append more text\n')