fh = open('output.txt', 'w')
fh.write('hello, world!\n')
fh.write('this is 2nd line.')
fh.close()
write file in python
最新推荐文章于 2023-06-21 12:20:42 发布
fh = open('output.txt', 'w')
fh.write('hello, world!\n')
fh.write('this is 2nd line.')
fh.close()