# 1

2021-02-19, 16:22:19
已解答: 【求助】关于python命令unicodedata.numeric
|
|
import unicodedata
print (unicodedata.numeric("8"))
这个可以输出8.0
为啥
import unicodedata
print (unicodedata.numeric("88"))
就报错呢:
TypeError: numeric() argument 1 must be a unicode character, not str
总不会"8"是字符串 ,而"88"不是吧。
|