#!/usr/bin/env python
# -*- coding: utf-8 -*-

l = ['a', 'b', 'c', 'd', 'e', 'f', 'g']

# 前3个
l[:3]

# 后3个
l[-3:]

# 每2个取一个
l[::2]

# 倒序
l[::-1]

# 复制
l[:]

d9f82108d41010c6e94749376239b47743c2ffb5
<mask token>

<mask token>
l[:3]
l[-3:]
l[::2]
l[::-1]
l[:]

l = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
l[:3]
l[-3:]
l[::2]
l[::-1]
l[:]

#!/usr/bin/env python
# -*- coding: utf-8 -*-

l = ['a', 'b', 'c', 'd', 'e', 'f', 'g']

# 前3个
l[:3]

# 后3个
l[-3:]

# 每2个取一个
l[::2]

# 倒序
l[::-1]

# 复制
l[:]
