-
- list=[12,-3,-50,32,25,11,99,99]
- print(f"list={list}")
- list.append(56)
- print(f"list={list}")
- list.insert(2,999)
- print(f"list={list}")
- list.pop(0)
- print(f"list={list}")
- list.remove(99)
- print(f"list={list}")
- print(f"list={list}")
- list.sort(reverse=1)
- print(f"list={list}")
- list=[12,-3,-50,32,25,11,99,99]
- print(f"list={list}")
- list.reverse()
複製代碼 |