0
点赞
收藏
分享

微信扫一扫

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

small_Sun 2022-02-10 阅读 92


成功解决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 条评论