|
|
@ -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. |
|
|
|
``` |
|
|
|
xxxxxxxxxx