Tinydict={' name ':' John ', 'code: 6734,' dept ':' seles'}
Why don't the output sequence with the original carefully, if not consistent, that there should be a sequence output too? The order of the output is d c n
To solve the thank you
CodePudding user response:
Dictionary is a hash tableIf this output, should be in accordance with the hash value output, not like you to add the order
The dictionary itself is unordered collection
CodePudding user response:
C # will be in accordance with the order of the input output at least,