Browse Source

Formatting

pull/7/head
Jure Šorn 5 years ago
parent
commit
1cb7580bea
1 changed files with 8 additions and 0 deletions
  1. 8
      README.md

8
README.md

@ -321,8 +321,16 @@ Format
```python
{1.23456:.3f} # '1.235'
{1.23456:10.3f} # ' 1.235'
```
```python
{123456:10,} # ' 123,456'
{123456:10_} # ' 123_456'
{123456:+10} # ' +123456'
```
```python
{65:c} # 'A'
{3:08b} # '00000011' -> Binary with leading zeros.
{3:0<8b} # '11000000' -> Binary with trailing zeros.
```

Loading…
Cancel
Save