python27 错误汇总

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

解决的方法:

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

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

原文地址:https://www.cnblogs.com/z3286586/p/10870463.html