There are three types of encoding, one is input encoding, one is code file encoding, and one is console encoding. Is my understanding wrong? The encoding should be consistent. The default string of Python2 is unicode, you can try __future__ unicode_literals
Use python 3, once and for all!
There are three types of encoding, one is input encoding, one is code file encoding, and one is console encoding. Is my understanding wrong? The encoding should be consistent. The default string of Python2 is
unicode
, you can try __future__ unicode_literals