1. isdigit()用法检测字符串是否只由数字组成
a = '11111122222' print(a.isdigit())
返回结果:
True
posted on 2020-03-26 14:14 Cc01 阅读(105) 评论(0) 收藏 举报