你可以使用+运算符来组合它们:
listone = [1,2,3]listtwo = [4,5,6]joinedlist = listone + listtwo
输出:
>>> joinedlist[1,2,3,4,5,6]
上一篇 poj 3902 The Bad Number
下一篇 Django + WebKit = Broken pipe
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号