Browse Source

Eval

pull/10/head
Jure Šorn 5 years ago
parent
commit
994a62c25d
1 changed files with 3 additions and 1 deletions
  1. 4
      README.md

4
README.md

@ -1325,7 +1325,9 @@ ValueError: malformed node or string
import ast import ast
from ast import Num, BinOp, UnaryOp from ast import Num, BinOp, UnaryOp
import operator as op import operator as op
```
```python
legal_operators = {ast.Add: op.add, legal_operators = {ast.Add: op.add,
ast.Sub: op.sub, ast.Sub: op.sub,
ast.Mult: op.mul, ast.Mult: op.mul,
@ -1712,7 +1714,7 @@ import numpy as np
```python ```python
<array> = np.array(<list>) <array> = np.array(<list>)
<array> = np.arange(from_inclusive, to_exclusive, step_size) <array> = np.arange(from_inclusive, to_exclusive, step_size)
<array> = np.ones(<shape>) # Shape is a tuple of dimension sizes.
<array> = np.ones(<shape>) # Shape is a tuple of dimension sizes.
<array> = np.random.randint(from_inclusive, to_exclusive, <shape>) <array> = np.random.randint(from_inclusive, to_exclusive, <shape>)
``` ```

Loading…
Cancel
Save