以下所有例子會以“a” 作為開啟檔案選項。 write. #!/usr/bin/python # 開啟檔案fp = open("filename.txt", "a") # 寫入This is a testing! 到檔案fp.write ...
確定! 回上一頁