Python NameError: name 'unicode' is not defined

Python2 的unicode 函数在 Python3 中被命名为 str。在 Python3 中使用 ·str 来代替 Python2 中的 unicode.

原文地址:https://www.cnblogs.com/vercont/p/10210202.html