使用close() 來關閉檔案,將記憶體內的位元組寫入檔案,並釋放資源。 [ ]. ↳ 0 ... txt") as f: data = f.read() print(data). Colab paid products - Cancel contracts ...
確定! 回上一頁