How to insert the contents of one list into another

前端 未结 3 375
借酒劲吻你
借酒劲吻你 2020-12-29 02:16

I am trying to combine the contents of two lists, in order to later perform processing on the entire data set. I initially looked at the built in insert functi

3条回答
  •  北海茫月
    2020-12-29 02:50

    The extend method of list object does this, but at the end of the original list.

    addition.extend(array)
    

提交回复
热议问题