将字符串拆分成字符数组
使用方法
Array.init(<#T##s: Sequence##Sequence#>)
实现
let str = "asdasdasdasdasd"
let arr1 = Array(str)
print(arr1)
base化
extension String {
/// split string into characters
public var gjCharacters: [Character] {
return Array(self)
}
}