python读文件和写文件

f=open('D:\\wangdongjie\\files\\webservice\\baidu\\3.txt','r+')
f.write('中国电视台1][][23qwe12f我是一个小小的石头,雨花石.mp3')
ff=open('D:\\wangdongjie\\files\\webservice\\baidu\\3.txt','r')
print(ff.read())
f.close()
ff.close()

 

 

posted @ 2013-11-13 13:17  SmallDong  阅读(241)  评论(0编辑  收藏  举报