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()

 

原文地址:https://www.cnblogs.com/wangdongjie0101/p/3420959.html