Kaydet (Commit) 4fbad84c authored tarafından Sandro Tosi's avatar Sandro Tosi

remove spurious dot from string formatting example; thanks to Anthon van der Neut from docs@

üst 55ae12b0
...@@ -602,7 +602,7 @@ Expressing a percentage:: ...@@ -602,7 +602,7 @@ Expressing a percentage::
>>> points = 19.5 >>> points = 19.5
>>> total = 22 >>> total = 22
>>> 'Correct answers: {:.2%}.'.format(points/total) >>> 'Correct answers: {:.2%}'.format(points/total)
'Correct answers: 88.64%' 'Correct answers: 88.64%'
Using type-specific formatting:: Using type-specific formatting::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment