import re
patt=r’13[4-9]\d{8,})KaTeX parse error: Undefined control sequence: \d at position 12: |15[01289]\̲d̲{8,})’
mobile=strinput‘请输入手机号码:’))
match=re.matchpatt,mobile)
if match==None:
printmobile,“不是有效的中国移动手机号码。”)
else:
printmobile,“是有效的中国移动手机号码。”)