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