diff options
author | Georg Brandl <georg@python.org> | 2009-01-03 20:55:06 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-01-03 20:55:06 (GMT) |
commit | c62ef8b4d9648c36218cb0142a6395a00c11885e (patch) | |
tree | 74d90ea6215a37553bb1cddfc4c4eddf947958e9 /Doc/tutorial/inputoutput.rst | |
parent | e92818f58c134549c8820073037a1655330bbea1 (diff) | |
download | cpython-c62ef8b4d9648c36218cb0142a6395a00c11885e.zip cpython-c62ef8b4d9648c36218cb0142a6395a00c11885e.tar.gz cpython-c62ef8b4d9648c36218cb0142a6395a00c11885e.tar.bz2 |
Remove trailing whitespace.
Diffstat (limited to 'Doc/tutorial/inputoutput.rst')
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index ef783ae..34d984a 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -87,7 +87,7 @@ Here are two ways to write a table of squares and cubes:: >>> for x in range(1,11): ... print '{0:2d} {1:3d} {2:4d}'.format(x, x*x, x*x*x) - ... + ... 1 1 1 2 4 8 3 9 27 @@ -162,7 +162,7 @@ number of characters wide. This is useful for making tables pretty.:: >>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 7678} >>> for name, phone in table.items(): ... print '{0:10} ==> {1:10d}'.format(name, phone) - ... + ... Jack ==> 4098 Dcab ==> 7678 Sjoerd ==> 4127 @@ -330,7 +330,7 @@ beginning of the file as the reference point. :: >>> f = open('/tmp/workfile', 'r+') >>> f.write('0123456789abcdef') >>> f.seek(5) # Go to the 6th byte in the file - >>> f.read(1) + >>> f.read(1) '5' >>> f.seek(-3, 2) # Go to the 3rd byte before the end >>> f.read(1) |