Add element to function in place C++

后端 未结 0 1573
春和景丽
春和景丽 2021-02-06 12:51

Add element to function in place C++ Python code:

l1 = [1, 2, 3]
l2 = l1 + [4]
print(l2) #[1, 2, 3, 4]

l3 = l1+l2
print(l3) #[1, 2, 3, 1, 2, 3, 4]
相关标签:
回答
  • 消灭零回复
提交回复
热议问题