請注意,我們使用 rstrip() 函式來刪除行末的換行符,因為 readline() 函式返回的是帶有尾部換行符的行。 在Python 中使用 readlines() 函式來讀取檔案的 ...
確定! 回上一頁