55问答网
所有问题
python如何从txt文档里读取数据
如题所述
举报该问题
其他回答
第1个回答 2018-05-27
import sys
f=open(r"G:\\PythonPractise\record.txt","r")
while True:
line=f.readline()
print(line,end=" ")
if not line:
break
f.close()
追答
我已回答请评价
相似回答
大家正在搜
相关问题
Python中怎么读取文本格式的文档中的数据
python怎么从txt文件中读取特定列的数据,新手,求大神...
python读取txt中的数据问题
Python如何从文件读取数据
python 从文件读入数据数据以空格隔开
怎么用python读取txt文件里指定行的内容,并导入exc...
python txt数据读取
怎么用python直接读取txt文件中的数字