Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Formate a phonenumber in phonenumber package with PhoneNumberFormat

>>> phonenumbers.format_number(x, phonenumbers.PhoneNumberFormat.NATIONAL)
'020 8366 1177'
>>> phonenumbers.format_number(x, phonenumbers.PhoneNumberFormat.INTERNATIONAL)
'+44 20 8366 1177'
>>> phonenumbers.format_number(x, phonenumbers.PhoneNumberFormat.E164)
'+442083661177'
Source by pypi.org #
 
PREVIOUS NEXT
Tagged: #Formate #phonenumber #phonenumber #package #PhoneNumberFormat
ADD COMMENT
Topic
Name
3+3 =