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}