mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
bpo-25059: Clarify the print separator usage in tutorial (GH-5879)
By default `print` adds spaces between its arguments.
(cherry picked from commit 84c4b0cc67
)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
This commit is contained in:
parent
632c1cb571
commit
ddf2485103
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ Here are two ways to write a table of squares and cubes::
|
||||||
10 100 1000
|
10 100 1000
|
||||||
|
|
||||||
(Note that in the first example, one space between each column was added by the
|
(Note that in the first example, one space between each column was added by the
|
||||||
way :func:`print` works: it always adds spaces between its arguments.)
|
way :func:`print` works: by default it adds spaces between its arguments.)
|
||||||
|
|
||||||
This example demonstrates the :meth:`str.rjust` method of string
|
This example demonstrates the :meth:`str.rjust` method of string
|
||||||
objects, which right-justifies a string in a field of a given width by padding
|
objects, which right-justifies a string in a field of a given width by padding
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue