Python dict 将元祖转成字典
2017-08-30 15:45
288 查看
dict 关键字 dict3=dict((('a',97),('b',98),('c',99))) #dict 只有一个参数
输出:{'a': 97, 'b': 98, 'c': 99}
相关文章推荐
- 简单谈谈Python中的元祖(Tuple)和字典(Dict)
- Python_Day_05 计数器(counter),有序字典(OrderDict),默认字典(defaultdict),可命名元祖(namedtuple),双向队列(deque),单项队列(deuqe.Queue)
- python基础数据结构——列表(list), 元祖(tuple), 字典(dict), 字符串(string), 集合(set) 介绍及相互转换
- 【Python】基础学习——列表(list),元祖(tuple),字典(dict),字符串(string),集合(set)
- python基础学习——列表(list), 元祖(tuple), 字典(dict), 字符串(string), 集合(set) 介绍及相互转换
- python中两个字典(dict)合并
- python中的字典(dict),列表(list),元组(tuple)
- Python 列表(list)、字典(dict)、字符串(string)常用基本操作小结
- Python 字典及其操作(dict)
- Python学习之字典(dict)
- Python学习笔记———列表(list)、元组(tuple)、字典(dict)
- python_dict字典常用函数小结
- python自练小程序之(字典,列表,元祖)
- python数据类型-元祖和字典类型、hash函数
- Python - 利用zip函数将两个列表(list)组成字典(dict)
- python dict字典操作用法详细总结
- python---字典dict的常用方法和操作
- Python - 字典(dict) 详解 及 代码
- python 将字符串转换成字典dict
- python 列表(list)元组(tuple)字典(dict)如何打印中文总结