```python
range:
for i in range(1,10,2):
print(i) #1 3 5 7 9
for i in range(10):
print(i) #0 1 2 3 4 5 6 7 8 9
list=['a','b','c','d','e']
enumerate:
for i in enumerate(list,start=2):
print(i) #(0, 'a') (1, 'b') (2, 'c') (3, 'd') (4, 'e')
```
#### 推导式
```python
#列表推导式
[xx for xx in rang()]
#字典推导式
{xx1:xx2 for ... in ...}
#集合推导式
{xx for xx in ...}
```
#### 合并两个列表为字典
```python
list1=['name','age','gender']
list2=['Tom',20,'man']
dict1={list1[i]:list2[i] for i in range(len(list1))}
print(dict1) #{'name': 'Tom', 'age': 20, 'gender': 'man'}
```