@
qile1 SyntaxError: invalid syntax
ubuntu@VM-18-113-ubuntu:~$ python /home/ubuntu/
fetch3.pyplease enter : hi
h
ubuntu@VM-18-113-ubuntu:~$ python /home/ubuntu/
fetch3.pyplease enter : 吃饭
Traceback (most recent call last):
File "/home/ubuntu/
fetch3.py", line 29, in <module>
d=results[0][0].encode("latin-1").decode("gbk")
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u997f' in position 0: ordinal not in range(256)
ubuntu@VM-18-113-ubuntu:~$ python /home/ubuntu/
fetch3.pyplease enter : hi
h
ubuntu@VM-18-113-ubuntu:~$ python /home/ubuntu/
fetch3.pyplease enter : 吃饭
Traceback (most recent call last):
File "/home/ubuntu/
fetch3.py", line 29, in <module>
d=results[0][0].encode("latin-1").decode("gbk")
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u997f' in position 0: ordinal not in range(256)
数字,英文都可以,中文不行~~~