📌  相关文章
📜  在 Swift 代码示例中将字符串拆分为数组

📅  最后修改于: 2022-03-11 15:01:01.457000             🧑  作者: Mango

代码示例1
let fullName = "First Last"    
let fullNameArr = fullName.components(separatedBy: " ")
let firstName = fullNameArr[0] //First
let lastName = fullNameArr[1] //Last