Python判斷字符串是否為手機號
def judge_phone(tel): """ 該函數判斷一個字符串是否為手機號 :param tel: :return: """ tel = str(tel) ret = re.match(r"^1[35789]\d{9}$", tel) if ret: return True else: return False
更多黑客教程,來極客易先生的開發滲透課,上 hk007.cn
Python判斷字符串是否為手機號
def judge_phone(tel): """ 該函數判斷一個字符串是否為手機號 :param tel: :return: """ tel = str(tel) ret = re.match(r"^1[35789]\d{9}$", tel) if ret: return True else: return False
更多黑客教程,來極客易先生的開發滲透課,上 hk007.cn
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。