有關更多功能,請參考標準Python文件。 ... write() 方法將任何字串寫入開啟的檔案。 ... #!/usr/bin/python3 # Open a file fo = open("foo.txt", "w") fo.write( ...
確定! 回上一頁