返回列表 發帖
list2 = [12,-3,-50,32,25,11]
print(list2)
list2.sort()
print(list2)
list2.sort(reverse = True)
print(list2)
print(len(list2))
a = list2.pop()
print(a)
print(list2)
list2.append(1000000)
print(100000)
print(list2)
list2.insert(0,10000000)
print(10000000)
print(list2)

TOP

# list2 = [12,-3,-50,32,25,11]
# print(list2)
# list2.sort()
# print(list2)
# list2.sort(reverse = True)
# print(list2)
# print(len(list2))
# a = list2.pop()
# print(a)
# print(list2)
# list2.append(1000000)
# print(100000)
# print(list2)
# list2.insert(0,10000000)
# print(10000000)
# print(list2)

TOP

返回列表