|
@ -1467,7 +1467,8 @@ last_el = op.methodcaller('pop')(<list>) |
|
|
|
|
|
|
|
|
Eval |
|
|
Eval |
|
|
---- |
|
|
---- |
|
|
### Basic [⬀](https://docs.python.org/3/library/ast.html?highlight=literal_eval#ast.literal_eval |
|
|
|
|
|
|
|
|
### Basic |
|
|
|
|
|
[⬀](https://docs.python.org/3/library/ast.html?highlight=literal_eval#ast.literal_eval |
|
|
```python |
|
|
```python |
|
|
>>> from ast import literal_eval |
|
|
>>> from ast import literal_eval |
|
|
>>> literal_eval('1 + 2') |
|
|
>>> literal_eval('1 + 2') |
|
|