给定像" ?"(\xe2\x9c\xae)之类的字符,例如,可以是其他像" ?"," ?"或" ?")我想找到字符在屏幕上打印时所占用的"实际"长度
?
\xe2\x9c\xae
例如
len("?") len("\xe2\x9c\xae")
两者都返回3,但应该是1
python unicode-string string-length python-2.7
python ×1
python-2.7 ×1
string-length ×1
unicode-string ×1