我的字符串是:"["0", "0", "1", "0", "0", "0", "0"]"
我想要的解决方案像数组:["1","1","1","1","1","1","1"]
Solution1:
let test = "["0", "0", "1", "0", "0", "0", "0"]"
let array = test.map( { String($0) })
debugPrint(array ?? []) //No use
Solution2:
var unescaped: String {
let entities = ["