#读取txt文档的某一列,python一行流 a=[float(l.split()[10])for l in open('d:/1.txt')]print(a)
文件样子
1 2 3
1 3 9
2 3 10
读取txt列,python一行流
最新推荐文章于 2024-07-05 02:06:23 发布
#读取txt文档的某一列,python一行流 a=[float(l.split()[10])for l in open('d:/1.txt')]print(a)
文件样子
1 2 3
1 3 9
2 3 10