|
@ -1465,9 +1465,9 @@ last_el = op.methodcaller('pop')(<list>) |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Eval |
|
|
|
|
|
|
|
|
Eval |
|
|
---- |
|
|
---- |
|
|
### Basic |
|
|
|
|
|
|
|
|
### 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') |
|
|