点击运行
#!/usr/bin/python3 str = u"this2009"; print (str.isdecimal()); str = u"23443434"; print (str.isdecimal());
运行结果 :
正在执行...