Tyto stránky již nejsou udržovány. Obsah je postupně přesouván/aktualizován na adrese chytrosti.marrek.cz.
1575/14228
1 #!/usr/bin/env python
2 # -*- coding: utf8 -*-
3 # Soubor: 20111011-Tue-zelava.py
4 # Datum: 11.10.2011 08:12
5 # Autor: Marek Nožka, nozka <@t> spseol <d.t> cz
6 # Licence: GNU/GPL
7 # Úloha: želví grafika
8
9 import turtle as tt
10
11 tt.speed(10)
12 tt.shape('turtle')
13 #######################################
14
15 def uhelnik(kroky,n):
16 uhel = 360.0/n
17 for i in range(n):
18 tt.forward(kroky)
19 tt.left(uhel)
20
21 for i in range(20):
22 uhelnik(100,5)
23 tt.right(18)
24
25
26
27 ##########################################
28 tt.exitonclick()
29