您的位置首页百科知识

python3 用isinstance()检查unicode编码报错

python3 用isinstance()检查unicode编码报错

for text that’s unicode in Python 2 and str in Python 3, for binary that’s str/bytes in Python 2 and bytes in Python 3python3中的型滑返卜饥str 对应python2中的unicode, 所以python3中没让猛有unicodehttps://docs.python.org/dev/howto/pyporting.html