报错代码:
city_form=self.payload+"&province="+str(pro)
报错内容:
UnicodeEncodeError: ‘latin-1‘ codec can‘t encode characters in position 80-81
解决方法:
city_form=self.payload+"&province="+str(pro).encode("utf-8").decode("latin1")
[已解决]报错:UnicodeEncodeError: 'latin-1' codec can't encode characters in position 80-81
原文地址:https://www.cnblogs.com/hankleo/p/12696935.html
时间: 2024-10-08 10:37:27