靚麗時尚館

位置:首頁 > 健康生活 > 心理

pop函式使用方法

心理6.96K
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為空或超出索引時丟擲錯誤。

標籤:Pop 函式