The following example shows how to use the readline() to read the text file line by line: with open('the-zen-of-python.txt') as f: line = f.readline() while ...
確定! 回上一頁