zl程序教程

您现在的位置是:首页 >  后端

当前栏目

python 读取文件第一列 空格隔开的数据

Python文件数据 读取 空格
2023-09-27 14:24:37 时间
file=open('6230hand.log','r')
result=list()
for c in file.readlines():
        c_array=c.split(" ")
#       result.append(c_array[0])
        print(c_array[0])
#print(result)