python3 字典问题详解
1,一维字典1.1 定义字典dict = {‘Name’: ‘Zara’, ‘Age’: 7, ‘Class’: ‘First’}1.2 根据键值访问对应元素值dict[‘Name’]1.3 遍历所有键-值对for k, v in dict.items():1.4 遍历所有键for k in dict.keys():1.5 遍历所有值for v in dict.values()...