|
@ -1437,6 +1437,30 @@ reader(adder(printer())) # 100, 101, ..., 109 |
|
|
Libraries |
|
|
Libraries |
|
|
========= |
|
|
========= |
|
|
|
|
|
|
|
|
|
|
|
Progress Bar |
|
|
|
|
|
------------ |
|
|
|
|
|
```python |
|
|
|
|
|
# $ pip3 install tqdm |
|
|
|
|
|
from tqdm import tqdm |
|
|
|
|
|
from time import sleep |
|
|
|
|
|
for i in tqdm([1, 2, 3]): |
|
|
|
|
|
sleep(0.2) |
|
|
|
|
|
for i in tqdm(range(100)): |
|
|
|
|
|
sleep(0.02) |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Plot |
|
|
|
|
|
---- |
|
|
|
|
|
```python |
|
|
|
|
|
# $ pip3 install matplotlib |
|
|
|
|
|
from matplotlib import pyplot |
|
|
|
|
|
pyplot.plot(<data_1> [, <data_2>, ...]) |
|
|
|
|
|
pyplot.savefig(<filename>, transparent=True) |
|
|
|
|
|
pyplot.show() |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Argparse |
|
|
Argparse |
|
|
-------- |
|
|
-------- |
|
|
```python |
|
|
```python |
|
@ -1476,19 +1500,6 @@ optional arguments: |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Progress Bar |
|
|
|
|
|
------------ |
|
|
|
|
|
```python |
|
|
|
|
|
# $ pip3 install tqdm |
|
|
|
|
|
from tqdm import tqdm |
|
|
|
|
|
from time import sleep |
|
|
|
|
|
for i in tqdm([1, 2, 3]): |
|
|
|
|
|
sleep(0.2) |
|
|
|
|
|
for i in tqdm(range(100)): |
|
|
|
|
|
sleep(0.02) |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table |
|
|
Table |
|
|
----- |
|
|
----- |
|
|
#### Prints CSV file as ASCII table: |
|
|
#### Prints CSV file as ASCII table: |
|
@ -1526,17 +1537,6 @@ def get_border(screen): |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Plot |
|
|
|
|
|
---- |
|
|
|
|
|
```python |
|
|
|
|
|
# $ pip3 install matplotlib |
|
|
|
|
|
from matplotlib import pyplot |
|
|
|
|
|
pyplot.plot(<data_1> [, <data_2>, ...]) |
|
|
|
|
|
pyplot.savefig(<filename>, transparent=True) |
|
|
|
|
|
pyplot.show() |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Image |
|
|
Image |
|
|
----- |
|
|
----- |
|
|
#### Creates PNG image of greyscale gradient: |
|
|
#### Creates PNG image of greyscale gradient: |
|
|