with open('/Users/winter/test.txt', 'w') as f: f.write('Hello, world!') 要寫入特定編碼的文字檔案,請給open()函式傳入encoding引數,將字 ...
確定! 回上一頁