9 lines
173 B
Python
Raw Normal View History

f = open('test/out/file3.txt', 'w')
2022-08-13 00:08:21 +08:00
seq = [
'This is the first line.\n',
'This is the second line.\n',
'This is the third line.\n'
]
f.writelines(seq)
f.close()