📜  python代码示例中的list reverse方法

📅  最后修改于: 2022-03-11 14:46:45.981000             🧑  作者: Mango

代码示例1
l1 = [1, 8, 7, 2, 21, 15]

 l1.reverse() # reverses the list
  
  print(l1)
  
  #it will reverse the list