列表排序L1 = [100,50,20,5]L2 = sorted(L1)print(L1)print(L2)L1.sort()*******************************************************删除元素del L1[1]>>> [100,20,5]L1.remove('element')#Remove the first item.letters.pop(0)#Remove the last item.letters.pop()*******************************************************合并两个列表L1 + L2L1.extend(L2)*******************************************************清空列表L1.clear()*******************************************************count how many times an item appears in a listL1.count(x)*******************************************************Finding a Python list item’s indexL1.index(x)*******************************************************Reversing a Python listL1.reverse()*******************************************************Copying a Python listL2 = L1.copy()