python小白必看的文件指針用法

文章目錄 引出問題 解決問題 引出問題 或許有的小白不知道這個文件指針就會出現如下問題: 案例一: 代碼含義:寫入三句話,並調用兩次read()函數讀取兩次文本python file = open("C:\\try.txt",'w',encoding="utf-8") file.write("I'm the first row.\n") file.write("I'm the second row
相關文章
相關標籤/搜索