在Python 中,內置的File 物件直接提供了一個readlines(sizehint) 函數來完成這樣的事情。以下面的代碼為例: file = open('test.log', 'r') sizehint = 209715200 ...
確定! 回上一頁