fname = input("请输入要打开的文件：")
fo = open(fname,"r")
for line in fo.readlines():
    print (line)

fo.close()

daee9739ae1464990598252650700315cd56b0d1
<mask token>

<mask token>
for line in fo.readlines():
    print(line)
fo.close()

fname = input('请输入要打开的文件：')
fo = open(fname, 'r')
for line in fo.readlines():
    print(line)
fo.close()

fname = input("请输入要打开的文件：")
fo = open(fname,"r")
for line in fo.readlines():
    print (line)

fo.close()
