python27 错误汇总

一、TypeError: object of type 'NoneType' has no len() 

解决的方法:

源代码:resp_data = None  (None是一个空的对象)

修改后代码:resp_data = '' (''是字符串对象)

posted @ 2019-05-15 16:47  K_Code  阅读(236)  评论(0编辑  收藏  举报