Python NameError: name 'unicode' is not defined

版权声明:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/DarrenXf/article/details/82957416

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

猜你喜欢

转载自blog.csdn.net/DarrenXf/article/details/82957416
今日推荐