[Python] python将两个数组合并成一个数组的两种方法 →→→→→进入此内容的聊天室

来自 , 2020-07-05, 写在 Python, 查看 153 次.
URL http://www.code666.cn/view/fdaa09fc
  1. c1 = ["Red","Green","Blue"]
  2. c2 = ["Orange","Yellow","Indigo"]
  3. c1.extend(c2)
  4.  
  5. assert c1 == ["Red","Green","Blue","Orange","Yellow","Indigo"]
  6.  
  7.  

回复 "python将两个数组合并成一个数组的两种方法"

这儿你可以回复上面这条便签

captcha