python 列表相加可以有两种方法实现:1 利用操作符+比如:a = [1,2,3]b = [4,5,6]c = a+bc的结果:[1,2,3,4,5,6]2 利用extend比如:a = [1,2,3]b = [4,5,6]a.extend(b)a的结果:[1,2,3,4,5,6]结果是一样的,但是+号生成的是一个新的对象,而extend则是在原地的修改a对象。