list.pop(index=-1)
指定 索引位置 删除 。
index 参数项 默认值 为 -1 。
list = [10, 20, 30, 40] assert list.pop() == 40 and list.pop(1) == 20