[Python] Manipulate Data with Dictionaries in Python

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)
上一篇:C# .net mvc web api 返回 json 内容,过滤值为null的属性


下一篇:Unity 使用 Newtonsoft json 库进行序列化和反序列化