python的文件操作 file=open('springboot.txt', 'r',encoding='UTF-8') lines=file.readlines() for lin in lines: print(lin)