热门搜索 :
考研考公
您的当前位置:首页正文

Swift代码库之数组array添加append另外一个数组

来源:东饰资讯网

Swift代码库之数组添加append另外一个数组

数据准备

var first = ["John", "Paul"]
let second = ["George", "Ringo"]

三种方法

first.append(contentsOf: second)
first += second
let third = first + second

往期精彩

Top