Python3 字符串
描述
isdecimal() 方法检查字符串是否只包含十进制字符。
语法
isdecimal()方法语法:
str.isdecimal()
参数
返回值
实例
以下实例展示了isdecimal()方法的使用方法:
以上实例输出结果如下:
False True