檔案開啟後,可使用read()函數讀取該檔案,存成一個字串,之後便可使用print()函數將檔案內容印出。 data = file.read() print(data) file.close(). 執行 ...
確定! 回上一頁