阅读背景:

python 学习小技巧:获取列表前后值,快速交换变量值

来源:互联网 
# 获取列表的前后元素
list1 =list(range(10))
a,*t,b=list1
print(a,t,b)pr



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: