Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 426 Bytes

31.md

File metadata and controls

30 lines (20 loc) · 426 Bytes
rank vote view answer url
31 2598 2628372 24 url

合并两个列表

怎样合并两个列表?

例如:

listone = [1,2,3]
listtwo = [4,5,6]

我期待:

mergedlist == [1, 2, 3, 4, 5, 6]

在Python中非常容易.

mergedlist = listone + listtwo