mirror of
https://gitlab.com/naja42/python-malbuch.git
synced 2024-11-26 17:43:20 +01:00
27 lines
441 B
Plaintext
27 lines
441 B
Plaintext
## Code mit spazierender Schildkröte
|
|
|
|
from turtle import *
|
|
speed(0)
|
|
for i in range (6):
|
|
n = 20
|
|
while n <= 100:
|
|
circle(n+20)
|
|
n = n+20
|
|
right(60)
|
|
done()
|
|
|
|
|
|
## Code für das Erstellen von einer svg Datei
|
|
|
|
from svg_turtle import SvgTurtle
|
|
t = SvgTurtle(1000, 1000)
|
|
t.speed(0)
|
|
for i in range (6):
|
|
n=20
|
|
while n <= 100:
|
|
t.circle(n+25)
|
|
n = n+20
|
|
t.right(60)
|
|
|
|
t.save_as('PyTurtle11.svg')
|