Special Chinese Characters Comparison
. There are something misunderstanding when comparing two characters '李','李'. >>> '李' == '李' False >>> id('李') # fisrt one 140041303457584 >>>
Solution 1:
I think it's just a coincidence that two character looks the same. like:
>>> "ᴀ" == "A"
False
>>> "С" == "C"
False
Visit unicode table, and you will find that the first character(unicode: 674e) is the normal character of Chinese, the second one(unicode: f9e1) is a special character that happends to look like the same. But they are indeed different characters.
Post a Comment for "Special Chinese Characters Comparison"