Skip to content

Commit 1cb7580

Browse files
committed
Formatting
1 parent feaa49b commit 1cb7580

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,16 @@ Format
321321
```python
322322
{1.23456:.3f} # '1.235'
323323
{1.23456:10.3f} # ' 1.235'
324+
```
325+
326+
```python
324327
{123456:10,} # ' 123,456'
325328
{123456:10_} # ' 123_456'
329+
{123456:+10} # ' +123456'
330+
```
331+
332+
```python
333+
{65:c} # 'A'
326334
{3:08b} # '00000011' -> Binary with leading zeros.
327335
{3:0<8b} # '11000000' -> Binary with trailing zeros.
328336
```

0 commit comments

Comments
 (0)