Skip to content

Commit be03c16

Browse files
committed
Format
1 parent 287d0db commit be03c16

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -352,15 +352,7 @@ Format
352352
{'abcde':10.3} # 'abc '
353353
```
354354

355-
### Float Options
356-
```python
357-
{1.23456:.3f} # '1.235'
358-
{1.23456:10.3f} # ' 1.235'
359-
{1.23456:10.3e} # ' 1.235e+00'
360-
{1.23456:10.3%} # ' 123.456%'
361-
```
362-
363-
### Int Options
355+
### Number Options
364356
```python
365357
{ 123456:10,} # ' 123,456'
366358
{ 123456:10_} # ' 123_456'
@@ -370,7 +362,14 @@ Format
370362
{-123456: } # '-123456'
371363
```
372364

373-
#### Char, Hex, Binary:
365+
#### Float types:
366+
```python
367+
{1.23456:10.3f} # ' 1.235'
368+
{1.23456:10.3e} # ' 1.235e+00'
369+
{1.23456:10.3%} # ' 123.456%'
370+
```
371+
372+
#### Int types:
374373
```python
375374
{90:c} # 'Z'
376375
{90:X} # '5A'

0 commit comments

Comments
 (0)