Browse Source

Format

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

4
README.md

@ -214,10 +214,6 @@ re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches
>>> person = {'name': 'Jean-Luc', 'height': 187.1}
>>> '{p[height]:.0f}'.format(p=person)
'187'
```
#### Or:
```python
>>> f"{person['height']:.0f}"
'187'
```

Loading…
Cancel
Save