Python——UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode 当字符串比较中有中文时,需要在中文字符串前加 u 转为unicode编码才可以正常比较。 str == u"中文"