-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path71210697_4.py
53 lines (47 loc) · 948 Bytes
/
71210697_4.py
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
import turtle
s = turtle.Screen()
turtle.Screen().bgcolor("cyan")
square = turtle.Turtle()
square.penup()
square.goto(-150, -100)
square.pendown()
square.pensize(2)
square.speed("normal")
square.color("black", "orange")
square.begin_fill()
for i in range(3):
square.forward(300)
square.left(90)
square.forward(125)
square.left(90)
square.end_fill()
square.forward(300)
square.left(90)
square.color("black", "yellow")
square.begin_fill()
square.circle(50, 180)
for i in range(2):
square.left(180)
square.circle(50, 180)
square.end_fill()
# lilin
square.penup()
square.goto(-20, 100)
square.pencolor("red")
square.pensize(5)
square.pendown()
square.right(180)
square.forward(50)
square.penup()
square.goto(0, 100)
square.pencolor("red")
square.pensize(5)
square.pendown()
square.forward(50)
square.penup()
square.goto(20, 100)
square.pencolor("red")
square.pensize(5)
square.pendown()
square.forward(50)
s.exitonclick()