Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
Python
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Python Phone.area_code示例
编程语言:
Python
命名空间/包名称:
phone_number
类/类型:
Phone
方法/功能:
area_code
hotexamples.com的示例:
1
Python Phone.area_code - 已找到1个示例
。这些是从开源项目中提取的最受好评的
phone_number.Phone.area_code
现实Python示例。您可以评价示例,以帮助我们提高示例质量。
常用方法
显示
隐藏
Phone(30)
pretty(3)
area_code(1)
常用方法
Phone (30)
pretty (3)
area_code (1)
示例#1
0
显示文件
文件:
phone_number_test.py
项目:
rishabh96b/xpython
def test_area_code(self): number = Phone("1234567890") self.assertEqual(number.area_code(), "123")