python簡單讀取文件案例二

在原來文本的基礎上添加新的信息 text = "新添加的內容" my_file = open('my file.txt','a') my_file.write(text) my_file.close() 結果:
相關文章
相關標籤/搜索