mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
15c0985d2e
support readline(), readlines(), writelines() for FILEIO
5 lines
159 B
Python
5 lines
159 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()
|