为了账号安全,请及时绑定邮箱和手机立即绑定

为什么python会像这样订购我的字典呢?

为什么python会像这样订购我的字典呢?

30秒到达战场 2019-06-18 17:16:55
为什么python会像这样订购我的字典呢?这是我的字典propertyList = {     "id":           "int",     "name":         "char(40)",     "team":         "int",     "realOwner":    "int",     "x":            "int",     "y":            "int",     "description":  "char(255)",     "port":         "bool",     "secret":       "bool",     "dead":         "bool",     "nomadic":      "bool",     "population":   "int",     "slaves":       "int",}但是当我用“\n”打印出来时,我得到了这个name nomadic dead port realOwner secret slaves team y x population id description我知道字典是无序的,但每次都是一样的,我不知道为什么。
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 466 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信