python文件的讀寫
\#encoding=utf8
fc = open("./testopen.txt","w")
content='"我是文件的內容"'
fc.write(content)
fc.close()
fr = open("./testopen.txt","r")
while True:
line = fr.readline()
if len(line)==0:
break
print line
fr.close()
需要注意不要丟了第一行的編碼方式