不罗嗦,直接解决问题!

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

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

参考国外网友回答:

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

解决方案:将

print(len(training_data)) 

改为

print(list(training_data))

大功告成!不用谢,我叫leifeng!

相关文章:

  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2021-10-11
  • 2022-12-23
  • 2021-12-18
  • 2021-11-20
相关资源
相似解决方案