>>> str1 = unicode('María','utf8') >>> str2 = u'María'.encode('utf8') >>> str1 == str2 False
怎么可能?
如果它是相关的,我正在使用iPython笔记本.
python unicode utf-8
python ×1
unicode ×1
utf-8 ×1