我们已经在Python 2.6下运行了我们的代码库.为了准备Python 3.0,我们开始添加:
from __future__ import unicode_literals
进入我们的.py文件(因为我们修改它们).我想知道是否还有其他人这样做并遇到任何非显而易见的陷阱(也许是在花了很多时间调试之后).
.py
python unicode python-2.6 unicode-literals
python ×1
python-2.6 ×1
unicode ×1
unicode-literals ×1