标签: python list
给出一个列表A = ['1', '2', '7','8']和B = ['3','4','5','6']
A = ['1', '2', '7','8']
B = ['3','4','5','6']
我知道我可以做到:A.insert(2, B)我会得到A = ['1', '2', ['3','4','5','6'],'7','8']这不是我之后的事。
A.insert(2, B)
A = ['1', '2', ['3','4','5','6'],'7','8']
我想要这样的事情:A = ['1', '2', '3','4','5','6','7','8']。如何在Python中完成?
A = ['1', '2', '3','4','5','6','7','8']