源代码
f = open("demofile.txt", "r") for x in f: print(x)
运行结果