python27 错误汇总 一、TypeError: object of type 'NoneType' has no len() 解决的方法: 源代码:resp_data = None (None是一个空的对象) 修改后代码:resp_data = '' (''是字符串对象)