TypeError: 'NoneType' object is not iterable
问题代码:
def total_scores(dictinary):
for number_ts in dictinary:
scores_ts= np.sum(dictinary[number_ts])
print(scores_ts)
TypeError: 'NoneType' object is not iterable
问题代码:
def total_scores(dictinary):
for number_ts in dictinary:
scores_ts= np.sum(dictinary[number_ts])
print(scores_ts)