会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小小程序员ol
博客园
首页
新随笔
联系
订阅
管理
2023年12月12日
Python中isdigit、isnumeric、isdecimal
摘要: 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)
公告