python 学习小技巧:获取列表前后值,快速交换变量值 # 获取列表的前后元素list1 =list(range(10))a,*t,b=list1print(a,t,b)#快速交换变量值a=1b=2c=3a,c,b=c,b,aprint(a,b,c)