此问题与在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字符串比较方式?