Python - 有没有办法使项目中的所有字符串默认为 unicode?

Python - is there a way to make all strings unicode in a project by default?

而不是在每个字符串前输入 u?

...以及一些让 Whosebug 开心的文字

是,使用from __future__ import unicode_literals

>>> from __future__ import unicode_literals
>>> s = 'hi'
>>> type(s)
<type 'unicode'>

在Python3中,字符串默认为unicode字符串。