摘要:
Python具有基本的文本文件读写功能。Python的标准库提供有更丰富的读写功能。 文本文件的读写主要通过open()所构建的文件对象来实现。 f = open("test.py","r")content = f.read()f.close()print contentfp=open('test.py','w')fp.write("I am a new student.")fp2=op... 阅读全文
posted @ 2014-05-04 22:36
饮露秋林
阅读(214)
评论(0)
推荐(0)
浙公网安备 33010602011771号