list倒序遍历

a = [1,2,3]

a.reverse()

a 变成[3,2,1]

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