相关疑难解决方法(0)

如何用python3制作unicode字符串

我用过这个:

u = unicode(text, 'utf-8')
Run Code Online (Sandbox Code Playgroud)

但是在Python 3中遇到错误(或者......也许我只是忘了包含一些东西):

NameError: global name 'unicode' is not defined
Run Code Online (Sandbox Code Playgroud)

谢谢.

python unicode python-3.x

92
推荐指数
4
解决办法
16万
查看次数

标签 统计

python ×1

python-3.x ×1

unicode ×1