Skip to content

Commit 065a954

Browse files
committed
Update 109.md
发现一处错误: {0:d}`表示第一个位置的长度是4个字符 改为:{0:4d}`表示第一个位置的长度是4个字符
1 parent 87728b3 commit 065a954

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎109.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
>>> "She is {0:4d} years old and the breast is {1:6.2f}cm".format(28, 90.1415926)
125125
'She is 28 years old and the breast is 90.14cm'
126126

127-
`{0:d}`表示第一个位置的长度是4个字符,并且默认状态下,填充到该位置的整数是右对齐。
127+
`{0:4d}`表示第一个位置的长度是4个字符,并且默认状态下,填充到该位置的整数是右对齐。
128128

129129
`{1:6.2f}`表示第二个位置的长度使6个字符,并且填充到该位置的浮点数要保留两位小数,默认也是右对齐。
130130

0 commit comments

Comments
 (0)