解压序列
>>> a,b,c = (1,2,3)
>>> a
1
>>> b
2
>>> c
3
快速取某个序列的第一个或者最后一个值
>>> l = [0,1,2,3,4,5,6,7,8,9]
>>> l
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> a,*_,c=l
>>> a
0
>>> c
9
解压序列
>>> a,b,c = (1,2,3)
>>> a
1
>>> b
2
>>> c
3
快速取某个序列的第一个或者最后一个值
>>> l = [0,1,2,3,4,5,6,7,8,9]
>>> l
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> a,*_,c=l
>>> a
0
>>> c
9