File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2622,7 +2622,7 @@ \section{Fancier Output Formatting \label{formatting}}
26222622... hello = 'hello, world\n'
26232623>>> hellos = `hello`
26242624>>> print hellos
2625- 'hello, world\012 '
2625+ 'hello, world\n '
26262626>>> # The argument of reverse quotes may be a tuple:
26272627... `x, y, ('spam', 'eggs')`
26282628"(31.400000000000002, 40000, ('spam', 'eggs'))"
@@ -2783,7 +2783,7 @@ \subsection{Methods of File Objects \label{fileMethods}}
27832783string (\code {""}).
27842784\begin {verbatim }
27852785>>> f.read()
2786- 'This is the entire file.\012 '
2786+ 'This is the entire file.\n '
27872787>>> f.read()
27882788''
27892789\end {verbatim }
@@ -2798,9 +2798,9 @@ \subsection{Methods of File Objects \label{fileMethods}}
27982798
27992799\begin {verbatim }
28002800>>> f.readline()
2801- 'This is the first line of the file.\012 '
2801+ 'This is the first line of the file.\n '
28022802>>> f.readline()
2803- 'Second line of the file\012 '
2803+ 'Second line of the file\n '
28042804>>> f.readline()
28052805''
28062806\end {verbatim }
@@ -2814,7 +2814,7 @@ \subsection{Methods of File Objects \label{fileMethods}}
28142814
28152815\begin {verbatim }
28162816>>> f.readlines()
2817- ['This is the first line of the file.\012 ', 'Second line of the file\012 ']
2817+ ['This is the first line of the file.\n ', 'Second line of the file\n ']
28182818\end {verbatim }
28192819
28202820\code {f.write(\var {string})} writes the contents of \var {string} to
You can’t perform that action at this time.
0 commit comments