主页
Python
Python String isdigit() 方法
demo_ref_string_isdigit2
运行 ❯
×
更改方向
保存代码
更改主题
a = "\u0030" #unicode for 0 b = "\u00B2" #unicode for ² print(a.isdigit()) print(b.isdigit())
True
True