源代码
f = open("demofile.txt", "r") print(f.readline()) print(f.readline())
运行结果