Python, store a dict in a database

前端 未结 4 1071
青春惊慌失措
青春惊慌失措 2021-02-05 16:14

What\'s the best way to store and retrieve a python dict in a database?

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-05 16:30

    Fairly vague question, depends a lot on the use cases.

    Typically you'd just serialize it and insert it wherever it was needed, but if you need the dict itself to be "database-like", then you can use one of many of the available key/value stores for Python

提交回复
热议问题