009 353行符号错误

加号应改为减号。
pull/8/head
夏小满 2020-07-06 17:34:30 +08:00 committed by GitHub
parent 204cae3d75
commit 4fcdb90d56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ print(f'{a} * {b} = {a * b}')
| ----------- | ---------- | ------------- | ---- |
| `3.1415926` | `{:.2f}` | `'3.14'` | 保留小数点后两位 |
| `3.1415926` | `{:+.2f}` | `'+3.14'` | 带符号保留小数点后两位 |
| `-1` | `{:+.2f}` | `'-1.00'` | 带符号保留小数点后两位 |
| `-1` | `{:-.2f}` | `'-1.00'` | 带符号保留小数点后两位 |
| `3.1415926` | `{:.0f}` | `'3'` | 不带小数 |
| `123` | `{:0>10d}` | `0000000123` | 左边补`0`补够10位 |
| `123` | `{:x<10d}` | `123xxxxxxx` | 右边补`x` 补够10位 |