Python随心记--解压序列

解压序列
a,*_,d= (1,2,3,3)
print(a)   #最开始的位置
print(*_)   #中间部分
print(d)   #最后位置
交换位置
a = 1
b = 2
a,b = b,a
原文地址:https://www.cnblogs.com/Essaycode/p/10126593.html