這玩意,嗯,是kotlin抄襲swift還是swift抄襲kotlin啊,kotlin的解構跟這個基本上一模一樣啊。
2021-08-31
關于獲取索引值的問題,新的swift版本需要這樣寫。
let index = str.index(str.startIndex, offsetBy:5);
str[index]
獲得結果 ","
let index = str.index(str.startIndex, offsetBy:5);
str[index]
獲得結果 ","
2019-03-12