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)
传进去的字典是空的,不了迭代
dictinary 这个是什么类型的 确定是否有值