|
按照教程学习数据分析,一下程序,运行时报错
import sys
import glob
import os
print("output 145:")
inputPath = sys.argv[1]
for input_file in glob.glob(os.path.join(inputPath,'*.txt')):
with open(input_file, 'r', newline='') as filereader:
for row in filereader:
print("{}".format(row.strip()))
IndexError: list index out of range
一直解决不了,求大神指教。非常感谢!!!!
|
|