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

Posted jiu__

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 读取文件第一列 空格隔开的数据相关的知识,希望对你有一定的参考价值。

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)

 

以上是关于python 读取文件第一列 空格隔开的数据的主要内容,如果未能解决你的问题,请参考以下文章