美文网首页
Swift_字典是无序的

Swift_字典是无序的

作者: Eyes_cc | 来源:发表于2020-11-26 10:46 被阅读0次
    var interestingNumbers = ["primes": [2, 3, 5, 7, 11, 13, 17],
                              "triangular": [1, 3, 6, 10, 15, 21, 28],
                              "hexagonal": [1, 6, 15, 28, 45, 66, 91]]
    print(interestingNumbers)
    # 第一次log: ["triangular": [1, 3, 6, 10, 15, 21, 28], "hexagonal": [1, 6, 15, 28, 45, 66, 91], "primes": [2, 3, 5, 7, 11, 13, 17]]
    # 第二次log: ["hexagonal": [1, 6, 15, 28, 45, 66, 91], "triangular": [1, 3, 6, 10, 15, 21, 28], "primes": [2, 3, 5, 7, 11, 13, 17]]
    
    

    相关文章

      网友评论

          本文标题:Swift_字典是无序的

          本文链接:https://www.haomeiwen.com/subject/bkiniktx.html