我可以在python 3中使用unicode字符串而不转换为字节吗?

时间:2019-07-17 06:04:59

标签: python-3.x

在我的代码中,我想使用unicode,但是当我尝试使用unicode时,就会出现错误,

引发TypeError('不支持unicode字符串,请编码为字节:{!r}'。format(seq))

TypeError:不支持unicode字符串,请编码为字节:'105ô\ x18'

在python 2.7代码中,unicode可以正常工作。

0 个答案:

没有答案