python - I retrieved data from mongodb using pymongo but why every time fields' sequence is different in output? -


the code is:-

import pymongo cur=pymongo.mongoclient()  db=cur.test1 site in db.sites.find():     print(site) 

in output, why sequence different everytime? should url first , name filled. ouput screenshot

there no order in dictionaries , these key,value pairs normal have different output everytime.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -