【发布时间】:2018-04-11 01:25:25
【问题描述】:
def main():
names = []
for line in ins:
number_strings = line.split() # Split the line on runs of whitespace
data.append(numbers_strings) # Add the "row" to your list.
print(data)
我尝试使用此代码打印一个看起来像这样的文本文件
name num1 num2 C/N
我正在尝试打印它,但是当我运行命令“python3 file.py”时没有输出。而不是打印我放入的文件的内容
【问题讨论】:
标签: python