code
bool(re.search(r‘\d‘, str))
python 判断字符串中是否包含数字
原文:https://www.cnblogs.com/sea-stream/p/12878132.html