344
|
1 from turtle import *
|
|
2 pu()
|
|
3 goto(-400,-400)
|
|
4
|
|
5 def label(txt):
|
|
6 write(txt, font=('Arial', 20, 'italic'))
|
351
|
7 hideturtle()
|
|
8 width(6)
|
344
|
9
|
|
10 def line(len, _label):
|
|
11 start = pos()
|
|
12 pd()
|
|
13 forward(len)
|
|
14 pu()
|
|
15 forward(30)
|
|
16 pd()
|
|
17 label(_label)
|
|
18 pu()
|
|
19 goto(start)
|
|
20
|
|
21 def tech(x, y, _label):
|
|
22 pu()
|
|
23 goto(x, y)
|
|
24 pd()
|
|
25 write(_label, font=('Arial', 40, 'bold'))
|
|
26 pu()
|
|
27
|
|
28 line(600, "Easy to write")
|
|
29 left(90)
|
|
30 line(600, "Easy to use")
|
|
31
|
|
32 tech(-360, 160, 'GUI')
|
|
33 tech(-390, 100, 'AJAX')
|
|
34 tech(-300, -10, 'webapp')
|
|
35 tech(190, -380, 'CLU')
|
351
|
36 tech(60, -320, 'TUI')
|
344
|
37 tech(100, -210, 'cmd')
|
351
|
38 tech(80, -80, 'cmd2')
|
344
|
39
|
|
40 while True:
|
|
41 pass |