python返回字符串长度_Python在使用特殊字符时返回错误的字符串长度
The problem is that the first ë́ is being counted twice, or I guess ë is in position 0 and ´ is in position 1.是的。这就是Unicode定义代码点的方式。通常,您可以要求Python使用Unicode规范化转换字母和单独的“组合”音调符号,如U+0301组合急性重音:>>>...