相关疑难解决方法(0)

Python unicode等同比较失败

此问题与在Python中搜索Unicode字符相关联

我使用python编解码器读取unicode文本文件

codecs.open('story.txt', 'rb', 'utf-8-sig')
Run Code Online (Sandbox Code Playgroud)

并试图在其中搜索字符串.但是我收到了以下警告.

UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Run Code Online (Sandbox Code Playgroud)

是否有任何特殊的unicode字符串比较方式?

python unicode

58
推荐指数
1
解决办法
10万
查看次数

标签 统计

python ×1

unicode ×1