python-如何处理电话号码库中的“ UAE”区域电话号码

时间:2018-08-12 05:00:45

标签: python python-2.7

import phonenumbers
from phonenumbers import carrier
from phonenumbers.phonenumberutil import number_type

ph_text = "+97143199099"

if carrier._is_mobile(number_type(phonenumbers.parse(ph_text))):

    print "True"

else:

    print "False"

输出:False

请在这里告诉我如何处理“ UAE”地区!

0 个答案:

没有答案