In [1]: a=[1,2,3,4,5,6]
In [2]: a[::-1]
Out[2]: [6, 5, 4, 3, 2, 1]
In [3]:
python list 倒序
最新推荐文章于 2024-04-15 15:45:00 发布