Python3出现以下错误 NameError: name 'unicode' is not defined 使用了python2的unicode函数, 而python3中使用str函数 解决方法: 即unicode → \rightarrow →str python2使用unicodepython3使用str