摘要: isdigit 字符串的isdigit方法用于判断字符串是否只包含数字,即0-9的字符 print('1233'.isdigit()) # True print('12.33'.isdigit()) # False isnumeric 字符串的isnumeric方法可用于判断字符串是否是数字,数字包 阅读全文
posted @ 2023-12-12 16:08 小小程序员ol 阅读(1025) 评论(0) 推荐(1)