用python写txt文件的最简单方法
py> f = open("test.txt", "w")
py> print >>f, "This is a test."
py> f.close()
py> print >>f, "This is a test."
py> f.close()
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。