|
|
@ -75,7 +75,7 @@ value = <dict>.setdefault(key, default) # Same, but also adds default to di |
|
|
|
``` |
|
|
|
|
|
|
|
```python |
|
|
|
value = <dict>.pop(key) # Removes item from dictionary. |
|
|
|
value = <dict>.pop(key) # Removes item from dictionary. |
|
|
|
{k: v for k, v in <dict>.items() if k in keys} # Filters dictionary by keys. |
|
|
|
``` |
|
|
|
|
|
|
@ -325,11 +325,11 @@ Format |
|
|
|
|
|
|
|
### General Options |
|
|
|
```python |
|
|
|
{<el>:<10} # '<el> ' |
|
|
|
{<el>:>10} # ' <el>' |
|
|
|
{<el>:^10} # ' <el> ' |
|
|
|
{<el>:->10} # '------<el>' |
|
|
|
{<el>:>0} # '<el>' |
|
|
|
{<el>:<10} # '<el> ' |
|
|
|
{<el>:>10} # ' <el>' |
|
|
|
{<el>:^10} # ' <el> ' |
|
|
|
{<el>:->10} # '------<el>' |
|
|
|
{<el>:>0} # '<el>' |
|
|
|
``` |
|
|
|
|
|
|
|
### String Options |
|
|
|