第四章后总结文档

1. isdigit()用法
检测字符串是否只由数字组成
a = '11111122222'
print(a.isdigit())

返回结果:

True
 
原文地址:https://www.cnblogs.com/hantongxue/p/12574161.html