Home > other >  What method can let the tuples into a dictionary
What method can let the tuples into a dictionary

Time:10-12

According to the requirements before use mongo now switch to mysql, but found when using the cursor. The fetchall (), the result is a tuple, but on the front end call is a dictionary... How to convert the tuple to the dictionary

CodePudding user response:

{key: value for I in the tuple}
  • Related