Python里对列表中一次插入好几个新元素除了可以用分片还可以用什么啊
分类 排序 等等
还可以用列表的extend方法,比如:
>>> a = [] >>> a.extend([1,2,3]) >>> a [1, 2, 3]
有帮助的话,请点采纳该答案~