机器学习之python基础篇11

“”"
@theme file
@time 2018/12/4
@author lz
@content 读取大文件,需要一行行读取文件的数据,
“”"
file=open(“readme.txt”)
while True:
text=file.readline();
if not text:
break
file.close()

猜你喜欢

转载自blog.csdn.net/weixin_43247522/article/details/84799550