read file line-wise. with open('example.txt') as f: for line in f: l=line.strip(). print(l). or, shorter. for line in (l.strip() for l in ...
確定! 回上一頁