python自带函数——文件写入
提问人:杨紫红发布时间:2020-11-18
>>> test_file = open('c:\\myfile.txt', 'w')
>>> test_file.write('What is green and loud? A froghorn!')
>>> test_file.close()
继续查找其他问题的答案?
相关视频回答
回复(0)
>>> test_file = open('c:\\myfile.txt', 'w')
>>> test_file.write('What is green and loud? A froghorn!')
>>> test_file.close()
点击加载更多评论>>