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)

 

posted @ 2018-09-18 20:20  jiu~  阅读(12868)  评论(0编辑  收藏  举报