Here是我的代码: 这是我得到的错误:
Traceback (most recent call last):
File "c:\users\michael\mu_code\summarizer1.py", line 41, in <module>
main()
File "c:\users\michael\mu_code\summarizer1.py", line 16, in main
pointlist[team_index] += int(line_split[2])
TypeError: list indices must be integers or slices, not NoneType
答案 0 :(得分:1)
get_list()
返回None
。您正在尝试将None
用作索引–您不能这样做。