【发布时间】:2017-09-04 00:46:17
【问题描述】:
所以我有一个包含 450 个或有时 1313 个字符串键的字典,我想将所有键添加到字符串数组中,因此每个字符串必须包含 1 到 100 个键,这取决于字典的大小。 例如,如果有 450 个键:
let array = ["first 100 keys here comma separated","second 100 keys here comma separated","third 100 keys here comma separated","fourth 100 keys here comma separated","and last 50 keys comma separated"]
【问题讨论】:
-
你已经有代码了吗?
-
不,我只有字典里的键。
标签: swift string dictionary key