用python写txt文件的最简单方法

py> f = open('test.txt', 'w') py> print >>f, 'This is a test.' py> f.close()
相关文章
相关标签/搜索