OCI_latex/moncode1.tex.bak

8 lines
234 B
TeX
Raw Normal View History

2019-02-07 23:57:49 +01:00
\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}