>>> f=open("E:/pythonLearn/140.txt") >>> for line in f.readlines(): print(line) #在此连续点两次回车即可 转载于:https://www.cnblogs.com/tuobei/p/9401221.html