Closed luoo369 closed 6 years ago
E:\Python36\new\pet-chain-buyer-master>python pet_chain.py
Traceback (most recent call last):
File "pet_chain.py", line 10, in
E:\Python36\new\pet-chain-buyer-master>
应该是cmd.exe默认中文编码是gbk的原因,而程序代码为utf-8 参考:python 中文乱码出现,不知道是什么原因? - 大头的回答 - 知乎
璇疯緭鍏ラ獙璇佺爜锛bgnx 歍raceback (most recent call last): File "pet_chain.py", line 91, in purchase self.captcha = input('璇疯緭鍏ラ獙璇佺爜锛?) File "", line 1, in
NameError: name 'bgnx' is not defined
success================================================
success================================================
success================================================
success================================================
璇疯緭鍏ラ獙璇佺爜锛ebry
歍raceback (most recent call last):
File "pet_chain.py", line 91, in purchase
self.captcha = input('璇疯緭鍏ラ獙璇佺爜锛?)
File "", line 1, in
NameError: name 'ebry' is not defined
success================================================
璇疯緭鍏ラ獙璇佺爜锛q7db
歍raceback (most recent call last):
File "pet_chain.py", line 91, in purchase
self.captcha = input('璇疯緭鍏ラ獙璇佺爜锛?)
File "", line 1, in
NameError: name 'q7db' is not defined
乱码怎么弄