![](https://img.kancloud.cn/8b/fa/8bfa6c34fe19513c2fa33c0b06493b93_255x113.png)
![](https://img.kancloud.cn/df/5b/df5bbd4f55da716ec3f69a641a7a403b_359x470.png)
![](https://img.kancloud.cn/0a/93/0a93f0a6174c2861b93d842520629ca7_506x102.png)
![](https://img.kancloud.cn/0a/f6/0af6fe62c2ca6326232d5c9c23cf513e_648x112.png)
![](https://img.kancloud.cn/04/ce/04ceaa2acd0eb582024afbedcb2b0ba4_639x110.png)
![](https://img.kancloud.cn/95/a4/95a4fdad5a426bcacac60b8c9f56eeba_643x153.png)
![](https://img.kancloud.cn/9e/0d/9e0d8febcb4633fe33cc0151c8424663_239x165.png)
![](https://img.kancloud.cn/31/69/316914f01dbc5c10b6b86828134f5aea_202x53.png)
![](https://img.kancloud.cn/41/a6/41a62e407d60adea54d18239575595de_255x237.png)
![](https://img.kancloud.cn/81/47/8147ee3c69ba8add9dfc7f7447ca169f_412x62.png)
![](https://img.kancloud.cn/eb/5f/eb5fca97ee693ec4a35fddda1ecaab1f_438x504.png)
![](https://img.kancloud.cn/1c/91/1c91c2c4dc3146e935334319908732df_902x520.png)
![](https://img.kancloud.cn/8f/89/8f8972a2858ed554405cdb6b2eddad69_807x607.png)
![](https://img.kancloud.cn/1e/b6/1eb607477daeecefdf11fee70ceb97ba_352x56.png)
```
for x in range(0,10,2):
print(x)
```
```
for x in range(10,0,-2):
print(x)
```
```
a=[1,2,3,4,5,6,7,8]
b=a[0:len(a):2];
print(b)
```
```
10
8
6
4
2
[1, 3, 5, 7]
```
![](https://img.kancloud.cn/f4/e6/f4e68d63eaaeba54ae768517f0b1b2cd_315x183.png)
![](https://img.kancloud.cn/5b/20/5b2035eaa74443450195797acad08dc9_233x70.png)
![](https://img.kancloud.cn/d0/ed/d0edaa1e69bbf91326b3864a56a85768_286x90.png)
![](https://img.kancloud.cn/bc/93/bc93e54533ecbdbc231c9052e553aada_232x123.png)
![](https://img.kancloud.cn/1b/e8/1be8fba32c17e5c4b4028175471f440c_248x90.png)
![](https://img.kancloud.cn/60/dd/60dd631b3c9fcdc8bb63a2c1b976b1e5_271x102.png)
```
__init__.py
```
![](https://img.kancloud.cn/66/cf/66cfe2ce7df8667f823496a88be67e72_328x108.png)