2023-07-06 23:09:49 +08:00

9 lines
173 B
Python

f = open('test/out/file3.txt', 'w')
seq = [
'This is the first line.\n',
'This is the second line.\n',
'This is the third line.\n'
]
f.writelines(seq)
f.close()