Browse Source

Format

pull/3/head
Jure Šorn 5 years ago
parent
commit
cea5f9a591
1 changed files with 9 additions and 6 deletions
  1. 15
      README.md

15
README.md

@ -281,11 +281,9 @@ import re
'187'
```
#### Binary, at least 10 spaces wide, filled with zeros:
```python
>>> f'{123:010b}'
'0001111011'
```
#### Float presentation types:
* `'e'` - Exponent
* `'f'` - Fixed point: .<precision>f
#### Integer presentation types:
* `'b'` - Binary
@ -294,11 +292,16 @@ import re
* `'x'` - Hex
* `'X'` - HEX
#### Binary, at least 10 spaces wide, filled with zeros:
```python
>>> f'{123:010b}'
'0001111011'
```
### Text Wrap
```python
import textwrap
textwrap.wrap(text, width)
<list> = textwrap.wrap(text, width)
```

Loading…
Cancel
Save