LANGUAGE » PYTHON » PACKAGE
Ast
Last updated:
Reference:
docs.python.org
Usage
Method
Description
literal_eval
Safely evaluate a string containing a Python literal.
Example
python
my_dict
=
ast.literal_eval(
'{"key": "value"}'
)
Theme
Links
Home
Back to top