Browse Source

Format

pull/3/head
Jure Šorn 6 years ago
parent
commit
eeb798e0b0
1 changed files with 4 additions and 4 deletions
  1. 8
      README.md

8
README.md

@ -280,10 +280,10 @@ Format
```python
>>> Person = namedtuple('Person', 'name height')
>>> person = Person('Jean-Luc', 187)
>>> f'{person.height}'
'187'
>>> '{p.height}'.format(p=person)
'187'
>>> f'{person.height:10}'
' 187'
>>> '{p.height:10}'.format(p=person)
' 187'
```
### General Options

Loading…
Cancel
Save