TypeError: ‘type‘ object is not iterable

問題描述:python3在def函數中傳入list的時候出現TypeError: 'type' object is not iterable 我的list是用下面的方式獲得的,value_list是獲得的集合中的一些元素,實際上也是一個list。 但是將該list傳入一個def中會報錯。因爲是直接用for i in value_list:這種形式遍歷的,發現這種形式會報錯。   但是在函數中改成了
相關文章
相關標籤/搜索