- a = [-32, -46, -12, -12, -12, -12, -12, -12, 12, 2, 3, 4, 25, 78, 87, 93, 28]
- print("Before Organisation:", a)
- a.sort()
- print("After Organisation:", a)
- a.reverse()
- print("Reverse: ", a)
- print("Length: ", len(a))
- a.pop()
- print("dump 1: ", a)
- a.append(-20)
- print("Append 1: ", a)
- a.insert(4, 0)
- print("ADD one in some where:", a)
- a.remove(-12)
- print("Remove: ", a)
複製代碼 |