码迷,mamicode.com
首页 > 编程语言 > 详细

python 判断字符串中是否包含数字

时间:2020-05-12 20:43:15      阅读:357      评论:0      收藏:0      [点我收藏+]

标签:search   div   color   判断   判断字符串   nbsp   包含   arch   style   

code

bool(re.search(r\d, str))

 

python 判断字符串中是否包含数字

标签:search   div   color   判断   判断字符串   nbsp   包含   arch   style   

原文地址:https://www.cnblogs.com/sea-stream/p/12878132.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!