Bootstrap

python读取每一行再按照空格分隔


all = []
with open('number.txt','r') as f:
    for line in f.readlines():
        curLine = line.strip().split(" ")
        print(curLine)
        all.append(curLine)
f.close()

print(all)

;