反转

list1=[1,3,8,1]
list1.reverse() # 反转
print(list1)

 

posted @ 2023-09-07 17:06  胖豆芽  阅读(2)  评论(0编辑  收藏  举报