AttributeError: 'str' object has no attribute 'decode'

ue = e.decode('latin-1')
修改为:

ue = e.encode('ascii', 'strict')

转载于:https://www.cnblogs.com/wensiyang0916/p/5726361.html

你可能感兴趣的:(AttributeError: 'str' object has no attribute 'decode')