python3.2 字典
来源:互联网 发布:距离变换算法 编辑:程序博客网 时间:2024/05/21 14:50
people = { 'Alice':{ 'phone':'2341', 'addr':'Foo drive 23' }, 'Beth':{ 'phone':'9102', 'addr':'Bar street 42' }, 'Cecil':{ 'phone':'3158', 'addr':'Baz avenue 90' } } labels = { 'phone':'phone number', 'addr': 'address' } name = input('Name: ') request = input("Phone number (p) or address (a) ?") if request == 'p': key = 'phone' if request == 'a': key = 'addr' if name in people: print (("%s's %s is %s .") % (name, labels[key], people[name][key]))
- python3.2 字典
- Python3字典
- python3--字典
- Python3 字典
- Python3 字典
- Python3-字典
- python3入门之字典
- python3 字典遍历操作
- Python3.4-字典笔记
- python3字典排序
- python3字典排序
- python3学习--4 字典
- Python3基础-字典
- python011 Python3 字典
- 【Python】Python3 字典
- Python3 字典(dictionaries)
- Python3.0+学习记录-字典
- Python3之 字典(dict)
- 漏洞挖掘练习环境(linux方向)
- 区间DP
- ManageEngine Security Manager Plus <= 5.5 build 5505 Remote SYSTEM/root SQLi
- 不堪回首的回忆.还是忍不住去想:伤感日志
- 自定义标签 2.0版 简单标签(步骤)
- python3.2 字典
- C初学->结构体
- 半生缘的伤感时尚空间日志发布:残缺的爱,不完美
- SQL Server 索引基础知识(1)--- 记录数据的基本格式
- 也许、是长大了,再也不会像从前那样单纯的笑了
- 计算圆,球,圆锥,圆柱的表面积与体积
- jsp标准标签---word
- Gateway T6822 XP 驱动 包括( 声卡 主板 显卡 等全套驱动)
- Ubuntu 修改计算机名