📜  python 从文本文件中读取列数据 - Python 代码示例
📅  最后修改于: 2022-03-11 14:46:36.241000             🧑  作者: Mango
代码示例1
import csv
with open('path/to/file.txt') as inf:
reader = csv.reader(inf, delimiter=" ")
second_col = list(zip(*reader))[1]