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

为什么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

我知道字典是无序的,但每次都是一样的,我不知道为什么。


30秒到达战场
浏览 467回答 3
3回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python