NameError: name 'unicode' is not defined
Python3出现以下错误
NameError: name 'unicode' is not defined
使用了python2的unicode函数, 而python3中使用str函数
解决方法:
即unicode→str
python2使用unicode
python3使用str
————————————————
版权声明:本文为CSDN博主「skyf**er」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_43239441/article/details/105949696
浙公网安备 33010602011771号