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

不罗嗦,直接解决问题! 问题:TypeError: object of type 'zip' has no len() --------------------- 本文来自 一个处女座的程序猿 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/qq_41185868/article/details/79039704?utm_source=copy

 

解决方案:将 print(len(training_data))  改为 print(list(training_data))

 

--------------------- 本文来自 一个处女座的程序猿 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/qq_41185868/article/details/79039704?utm_source=copy

 

你可能感兴趣的:(成功解决Python中出现的TypeError: object of type 'zip' has no len())