当前位置:柔美女性网 >

绿色生活 >心理 >

insert用法 python

insert用法 python

python insert用法

insert()是Python中的内置函数,可将给定元素插入列表中的给定索引。

用法:

list_rt(index, element)

参数

index - the index at which the element has to be inserted.

element - the element to be inserted in the list.

返回值:

This method does not return any value but

it inserts the given element at the given index.

标签: python insert
  • 文章版权属于文章作者所有,转载请注明 https://rmnxw.com/lvse/xinli/xd6d4x.html