We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7f02a3 commit c6532cdCopy full SHA for c6532cd
README.md
@@ -347,15 +347,15 @@ f'{<el>:>0}' # '<el>'
347
### String Options
348
**`'!r'` calls object's repr() method, instead of format(), to get a string.**
349
```python
350
-f'{'abcde'!r:<10}' # "'abcde' "
351
-f'{'abcde':.3}' # 'abc'
352
-f'{'abcde':10.3}' # 'abc '
+f'{"abcde"!r:<10}' # "'abcde' "
+f'{"abcde":.3}' # 'abc'
+f'{"abcde":10.3}' # 'abc '
353
```
354
355
### Number Options
356
357
f'{ 123456:10,}' # ' 123,456'
358
-f'{ 123456:10_}' # ' 123_456'
+'{ 123456:10_}' # ' 123_456'
359
f'{ 123456:+10}' # ' +123456'
360
f'{-123456:=10}' # '- 123456'
361
f'{ 123456: }' # ' 123456'
0 commit comments