Maison  >  Questions et réponses  >  le corps du texte

dict - python字典排序后如何保持为字典类型?

阿神阿神2741 Il y a quelques jours860

répondre à tous(1)je répondrai

  • 伊谢尔伦

    伊谢尔伦2017-04-17 16:35:54

    Python 的 dict 是无序的,如果需要有序的字典,要用 collections.OrderedDict 。

    répondre
    0
  • Annulerrépondre