... 使用file 指定至其它的輸出。例如以下會將. 指定的值輸出至data.txt:. >>> print(1, 2, 3, file = open('data.txt', 'w')). >>> open()函式會開啟檔案,並傳回一個_io.
確定! 回上一頁