json.loads changes order of the keys given in the string passed
本问题已经有最佳答案,请猛点这里访问。
1 2 3 4 5 | >>> x='{"Title":"test","Description":"test des","Colo":"test colo1","Expected Date":"1234","Comboboxes":"option1","Checkboxes":["option1","option2"]}' >>> x '{"Title":"test","Description":"test des","Colo":"test colo1","Expected Date":"1234","Comboboxes":"option1","Checkboxes":["option1","option2"]}' >>> json.loads(x) {'Expected Date': '1234', 'Description': 'test des', 'Title': 'test', 'Comboboxes': 'option1', 'Colo': 'test colo1', 'Checkboxes': ['option1', 'option2']} |
请帮助我按给定字符串的相同顺序获取这些键。
(P)EDOCX1 0 Anual Produces a Python Dictionary,which get its ordering from internal hasing tables.You can use EDOCX1 plography 1 to sort them,but you cannot order a standard dictificary.如果你需要的话你可以用一个字母2(p)