How to send 2D / nested Dictionary by urllib in python3

there is a two-dimensional dictionary locally:

 {
    "a": 12,
    "rating": {
        "max": 10,
        "numRaters": 79,
        "average": "9.1",
        "min": 0
    }
}

    Array
(
    [a] => 12
    [rating] => Array
        (
            [max] => 10
            [numRaters] => 79
            [average] => 9.1
            [min] => 0
        )
)

how to deal with it locally

Dec.10,2021

is this the result you want?

In [2]: import numpy as np 

In [3]: result =  {
   ...:     'a': 12,
   ...:     'rating': {
   ...:         "max": 10,
   ...:         "numRaters": 79,
   ...:         "average": "9.1",
   ...:         "min": 0
   ...:     }
   ...: }

In [4]: array = np.array(result)

In [5]: array 
Out[5]: 
array({'a': 12, 'rating': {'max': 10, 'numRaters': 79, 'average': '9.1', 'min': 0}},
      dtype=object)

clipboard.png

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36560-2b552.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36560-2b552.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?