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

为什么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 关注
  • 506 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号