摘要: str_1 = "123" str_2 = "Abc" str_3 = "123Abc" #用isdigit函数判断是否数字 print(str_1.isdigit()) Ture print(str_2.isdigit()) False print(str_3.isdigit()) False # 阅读全文
posted @ 2021-10-18 10:47 umsung 阅读(470) 评论(0) 推荐(0)