From 6c394b28a8ee46f369e6969c8180343342bce5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 25 Dec 2018 18:09:04 +0100 Subject: [PATCH] Format --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 98851a2..249debc 100644 --- a/README.md +++ b/README.md @@ -261,13 +261,10 @@ import re ### Format ```python = '{}, {}'.format(, ) -``` -#### Or: -```python - = f'{} { = f'{}, {:<10} # ' ' {:>10} # ' ' @@ -276,13 +273,13 @@ import re {:^0} # '' ``` -#### Specific for strings: +#### Options specific to strings: ```python {'abcde':.3} # 'abc' {'abcde':>10.3}' # ' abc' ``` -#### Specific for numbers: +#### Options specific to numbers: ```python {1.23456:.3f} # '1.235' {1.23456:>10.3f} # ' 1.235'