diff --git a/phone.py b/phone.py index e501d75..cc84cf1 100644 --- a/phone.py +++ b/phone.py @@ -1,4 +1,4 @@ -# 手机号正则+2 +# 手机号正则+3 import re phone_num = re.compile(r'\d{11}') print(phone_num.search('我的电话是13512345678'))