-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathturtle4.py
More file actions
83 lines (42 loc) · 670 Bytes
/
turtle4.py
File metadata and controls
83 lines (42 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 9 08:41:17 2017
@author: loulan
"""
"""
#draw a picture
import turtle
import time
t = turtle.Turtle()
t.speed(0)
move =1
for i in range(180):
t.color("green")
t.right(move)
t.penup()
t.fd(100)
t.pendown()
t.left(36)
t.fd(120)
t.left(36)
t.circle(20)
t.home()
move+=2
t.done()
"""
"""
#draw a picture likely a sunflowers
import turtle
import time
t = turtle.Turtle()
t.shape("turtle")
t.color("red","yellow")
t.begin_fill()
while True:
t.fd(200)
t.left(170)
if abs(t.pos())<1:
break
t.end_fill()
time.sleep(15)
"""