赞
踩
>>>c1 = ["Red","Green","Blue"] >>>c2 = ["Orange","Yellow","Indigo"] >>>c1.extend(c2) >>>c1 #["Red","Green","Blue","Orange","Yellow","Indigo"]
- 1
- 2
- 3
- 4
>>>c1 = ["Red","Green","Blue"] >>>c2 = ["Orange","Yellow","Indigo"] >>>c3 = c1 + c2 >>>c3 # ["Red","Green","Blue","Orange","Yellow","Indigo"]
- 1
- 2
- 3
- 4
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。