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

code

bool(re.search(r'd', str))
原文地址:https://www.cnblogs.com/sea-stream/p/12878132.html