python合并多个list类型
python
合并多个list
类型直接通过+
号操作符即可
listone = [1,2,3]
listtwo = [4,5,6]
mergedlist = listone + listtwo
#output
>>> mergedlist
[1,2,3,4,5,6]
python
合并多个list
类型直接通过+
号操作符即可
listone = [1,2,3]
listtwo = [4,5,6]
mergedlist = listone + listtwo
#output
>>> mergedlist
[1,2,3,4,5,6]