以上都是常规操作,现在看看我的,一行代码可以解决这个问题。 ```swift var dataMap = Dictionary.init(dataList.map { ($0.name, $0) }) { $1 }
確定! 回上一頁