博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[Python] Manipulate Data with Dictionaries in Python
阅读量:4313 次
发布时间:2019-06-06

本文共 347 字,大约阅读时间需要 1 分钟。

Dictionaries may be familiar to you as hash maps. In this lesson, you will learn how to create them, get the values, and delete elements from the dictionary.

 

person = {}person['name'] = "Wan"person['age'] = 29for key, value in person.items():    print(key, value)# ('name', "Wan")# ('age', 29)

 

转载于:https://www.cnblogs.com/Answer1215/p/8020173.html

你可能感兴趣的文章
Docker 的两类存储资源 - 每天5分钟玩转 Docker 容器技术(38)
查看>>
Codeforces 257D
查看>>
常用的20个强大的 Sublime Text 插件
查看>>
ajaxfileupload.js在IE中的支持问题
查看>>
当document.write里含有script标签时
查看>>
工作中常见问题
查看>>
JAVA 从一个List里删除包含另一个List的数据
查看>>
外国的月亮比较圆吗?外籍团队工作有感
查看>>
分布式系统事务一致性解决方案
查看>>
ShuffleNet总结
查看>>
前后台验证字符串长度
查看>>
《算法导论 - 思考题》7-1 Hoare划分的正确性
查看>>
win64 Python下安装PIL出错解决2.7版本 (3.6版本可以使用)
查看>>
获取各种类型的节点
查看>>
表达式求值-201308081712.txt
查看>>
centos中安装tomcat6
查看>>
从Vue.js窥探前端行业
查看>>
学习进度
查看>>
poj3368 RMQ
查看>>
“此人不存在”
查看>>