POP() 函数用于移除列表中的一个元素(默认最后一个元素),并返回该元素值

list.pop(obj=list[-1])  默认为 index=-1 删除最后一个列表值

猜你喜欢

转载自www.cnblogs.com/xiaomahei/p/12072218.html
pop
今日推荐