在The Hitchhiker's Guide to Python中建議最好使用: for line in f: print line 比: a = f.read() print a 其中, f 是檔案物件。
確定! 回上一頁