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

来自 , 2019-10-08, 写在 Python, 查看 157 次.
URL http://www.code666.cn/view/0c5534f5
  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