list倒序遍历

a = [1,2,3]

a.reverse()

a 变成[3,2,1]

posted @ 2022-03-20 21:36  bH1pJ  阅读(37)  评论(0编辑  收藏  举报