AttributeError: 'str' object has no attribute 'decode'
错误代码:query = query.encode(errors='replace')
解决方法:把decode改为encode即可。
时间:2021-11-22 11:49:43
AttributeError: 'str' object has no attribute 'decode'
错误代码:query = query.encode(errors='replace')
解决方法:把decode改为encode即可。