📌  相关文章
📜  python 从文件中读取值 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:11.041000             🧑  作者: Mango

代码示例3
file = open('test.txt')
for line in file:
    fields = line.strip().split()
    print fields[0], fields[1], fields[2], fields[3]