返回列表 發帖
  1. list=[1,2,3,4,5,6,7,8,9,10]
  2. print(list)
  3. list.append(11)
  4. print(list)
  5. list.insert(2, 2.5)
  6. print(list)
  7. list.pop(1)
  8. print(list)
  9. list.remove(9)
  10. print(list)
  11. list.sort(reverse=1)
  12. print(list)
  13. list.reverse()
  14. print(list)
複製代碼

TOP

返回列表