Python 確實有這個指令,那就是With,它的用法如下:. with open(檔案路徑, 讀寫模式) as 物件名稱: ... with open('d:\\test.txt', 'w+t') as file:.
確定! 回上一頁