Copying a sublist into a main list as objects instead of lists
This question already has an answer here:
尝试这个:
child.extend(parent[:index])
链接地址: http://www.djcxy.com/p/22564.html
上一篇: 添加数字,然后将元组列举为元组,但它会删除外部元组
下一篇: 将子列表作为对象而不是列表复制到主列表中