OCI_latex/moncode1.tex.bak

8 lines
234 B
TeX

\begin{lstlisting}
[float,language=python,
caption={Un code utilisant turtle},
label={listing:turtle}]
from turtle import * # import du module turtle
forward(100) # avance de 100
mainloop() # boucle en attente
\end{lstlisting}