當前位置:柔美女性網 >

綠色生活 >心理 >

pop函數使用方法

pop函數使用方法

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
  • 文章版權屬於文章作者所有,轉載請註明 https://rmnxw.com/zh-hk/lvse/xinli/1n7on2.html