[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)
相关文章推荐
- Mapping Data in Python with Pandas and Vincent
- Working with Binary Data in Python
- REST web services with Python, MongoDB, and Spatial data in the Cloud - Part 2
- data manipulate in excel with easyExcel class
- [debug] debugging in python with pdb
- (未解决,只是提供一种思路)安装pyspider失败:Command "python setup.py egg_info"failed with error code 10 in.....
- List Slice in Python(Compared with Java)
- pip安装jupyter时报错Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Fd4ir0/
- using an enumerable built-in Ruby to access and manipulate nested data
- command "python setup.py egg_info" failed with error code 1 in ...
- 【DataStructure In Python】Python模拟栈和队列
- machine learning in coding(python):pandas数据包DataFrame数据结构简介
- ubuntu 安装mysql 错误Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lmPxC
- Comprehensive learning path – Data Science in Python深度学习路径-用python进行数据学习
- Class to connect postgres with python in psycopg2
- Less copies in Python with the buffer protocol and memoryviews
- [Postgres] Filter Data in a Postgres Table with Query Statements
- Data Structure and Algorithm in Python 第一章 课后练习
- #3 working with data stored in files && securing your application
- Host Python In your Application with IronPython2.0.1 (一): 创建交互环境