您的位置:首页 > 编程语言 > Python开发

[Python] Manipulate Data with Dictionaries in Python

2017-12-11 01:34 555 查看
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'] = 29

for key, value in person.items():
print(key, value)

# ('name', "Wan")
# ('age', 29)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: