关闭→
当前位置:尚之范>生活>心理>pop函数使用方法

pop函数使用方法

尚之范 人气:5.78K
pop函数使用方法

pop()函数是python解释器的内置方法,可作用于列表,字典。pop为“弹出”之意。

用法说明——

在中找到pop函数。

列表:

([index]) -> item -- remove and return item at index (default last).

Raises IndexError if list is empty or index is out of range.

移出并返回L中索引的值,在L为空或超出索引时抛出错误。

TAG标签:#函数 #Pop #