Browse Source

Format

pull/23/head
Jure Šorn 6 years ago
parent
commit
be03c16850
1 changed files with 9 additions and 10 deletions
  1. 19
      README.md

19
README.md

@ -352,15 +352,7 @@ Format
{'abcde':10.3} # 'abc '
```
### Float Options
```python
{1.23456:.3f} # '1.235'
{1.23456:10.3f} # ' 1.235'
{1.23456:10.3e} # ' 1.235e+00'
{1.23456:10.3%} # ' 123.456%'
```
### Int Options
### Number Options
```python
{ 123456:10,} # ' 123,456'
{ 123456:10_} # ' 123_456'
@ -370,7 +362,14 @@ Format
{-123456: } # '-123456'
```
#### Char, Hex, Binary:
#### Float types:
```python
{1.23456:10.3f} # ' 1.235'
{1.23456:10.3e} # ' 1.235e+00'
{1.23456:10.3%} # ' 123.456%'
```
#### Int types:
```python
{90:c} # 'Z'
{90:X} # '5A'

Loading…
Cancel
Save