TA贡献1839条经验 获得超15个赞
TA贡献1811条经验 获得超6个赞
let array = [111, 222, 111]
var dictInts = Dictionary<String, Int>()
for number in array {
dictInts[String(number)] = number
}
var result = [Int]()
for value in dictInts.values {
result.append(value)
print(result)
举报