mirror of
https://github.com/python/cpython.git
synced 2025-09-14 12:46:49 +00:00
Fix typo
This commit is contained in:
parent
bd3a240e6d
commit
ec3402f287
1 changed files with 4 additions and 4 deletions
|
@ -4454,7 +4454,7 @@ running \samp{python demo.py one two three} at the command line:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
>>> import sys
|
>>> import sys
|
||||||
>>> print sys.argv[]
|
>>> print sys.argv
|
||||||
['demo.py', 'one', 'two', 'three']
|
['demo.py', 'one', 'two', 'three']
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
|
@ -4500,7 +4500,7 @@ optimized solutions:
|
||||||
|
|
||||||
\section{Mathematics\label{mathematics}}
|
\section{Mathematics\label{mathematics}}
|
||||||
|
|
||||||
The \ulink{\module{math}}{../lib/module-math.html} math module gives
|
The \ulink{\module{math}}{../lib/module-math.html} module gives
|
||||||
access to the underlying C library functions for floating point math:
|
access to the underlying C library functions for floating point math:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
|
@ -4618,9 +4618,9 @@ quickly demonstrates that the traditional approach is faster:
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
>>> from timeit import Timer
|
>>> from timeit import Timer
|
||||||
>>> dir(Timer)
|
>>> dir(Timer)
|
||||||
>>> Timer('t=a; a=b; b=t', 'a=1; b=1').timeit()
|
>>> Timer('t=a; a=b; b=t', 'a=1; b=2').timeit()
|
||||||
0.60864915603680925
|
0.60864915603680925
|
||||||
>>> Timer('a,b = b,a', 'a=1; b=1').timeit()
|
>>> Timer('a,b = b,a', 'a=1; b=2').timeit()
|
||||||
0.8625194857439773
|
0.8625194857439773
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue