String
根据index找到string中的character #
var firstChar = Array(string)[0]
Array
两个Array合并
var arr1 = [1,2,3,4]
var arr2 = [5]
arr1 += arr2
var firstChar = Array(string)[0]
var arr1 = [1,2,3,4]
var arr2 = [5]
arr1 += arr2
本文标题:swift 语法糖
本文链接:https://www.haomeiwen.com/subject/rvwbqrtx.html
网友评论