rank | vote | view | answer | url |
---|---|---|---|---|
36 | 1727 | 1504654 | 28 | url |
合并两个列表
怎样合并两个列表?
例如:
listone = [1,2,3]
listtwo = [4,5,6]
我期待:
mergedlist == [1, 2, 3, 4, 5, 6]
在Python中非常容易.
mergedlist = listone + listtwo
rank | vote | view | answer | url |
---|---|---|---|---|
36 | 1727 | 1504654 | 28 | url |
怎样合并两个列表?
例如:
listone = [1,2,3]
listtwo = [4,5,6]
我期待:
mergedlist == [1, 2, 3, 4, 5, 6]
在Python中非常容易.
mergedlist = listone + listtwo