iOS 梦想家们改变世界的起点
Join us
探寻2018最具创意、最具影响力的作品
Learn more
尝试从playground入手领会swift的奥妙
Play now
利用闭包,非常黑科技。
let dict = ["27":"w","15":"t","36":"b"] let keys = dict.sorted(by: {$0.0 < $1.0}) let values = dict.sorted(by: {$0.1 < $1.1}) print(keys) print(values)
参考