成功解决Python中出现的TypeError: object of type 'zip' has no len()

small_Sun

关注

阅读 92

2022-02-10


成功解决Python中出现的TypeError: object of type 'zip' has no len()

不罗嗦,直接解决问题!



目录

​​解决问题​​

​​解决思路​​

​​解决方法​​



解决问题

TypeError: object of type 'zip' has no len()

成功解决Python中出现的TypeError: object of type




解决思路

类型错误:“zip”类型的对象没有len()方法

参考国外网友回答:

成功解决Python中出现的TypeError: object of type



解决方法

将     print(len(training_data)) 

改为  print(list(training_data))

大功告成!哈哈!






精彩评论(0)

0 0 举报