# 写法:字符串.isdigit()# 定义:判断字符串中所有字符是否为数字p = '1357924680'o = 'y123p456'print(p.isdigit()) # 输出Trueprint(o.isdigit()) # 输出False