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
Copyright © taizilongxu 2018 all right reserved,powered by Gitbook该文件修订时间: 2018-10-17 17:33:54

results matching ""

    No results matching ""