为什么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我知道字典是无序的,但每次都是一样的,我不知道为什么。
添加回答
举报
0/150
提交
取消