howto · 2023-01-30
Python 具有從檔案讀取特定行的不同方法,例如,小檔案使用 fileobject.readlines(),重複檔案使用 linecache,大檔案使用 enumerate()。