m · JustDoPython/python-examples@42510ff · GitHub
Skip to content

Commit 42510ff

Browse files
committed
m
1 parent 644765d commit 42510ff

9 files changed

Lines changed: 59 additions & 0 deletions

File tree

yeke/README.md

Lines changed: 1 addition & 0 deletions

yeke/py-flag/__init__.py

Whitespace-only changes.

yeke/py-flag/apple.jpg

26 KB
Loading

yeke/py-flag/apple.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import turtle
2+
3+
turtle.setup(600, 600, 0, 0)
4+
turtle.up()
5+
turtle.goto(0, -200)
6+
turtle.down()
7+
# 先画一个圆,并填充为红色
8+
turtle.begin_fill()
9+
turtle.color("red")
10+
turtle.circle(radius=150)
11+
turtle.end_fill()
12+
# 画苹果把
13+
turtle.color("black")
14+
turtle.pu()
15+
turtle.goto(-90, 0)
16+
turtle.pd()
17+
turtle.circle(180, 40)
18+
turtle.pu()
19+
turtle.seth(105)
20+
turtle.goto(-20, 20)
21+
turtle.pd()
22+
turtle.circle(180, 50)
23+
turtle.pd()
24+
# 画左边叶子
25+
turtle.begin_fill()
26+
turtle.color("green")
27+
turtle.circle(180, 50)
28+
turtle.seth(-30)
29+
turtle.circle(180, 55)
30+
turtle.end_fill()
31+
# 画右边叶子
32+
turtle.begin_fill()
33+
turtle.color("green")
34+
turtle.seth(0)
35+
turtle.circle(180, 50)
36+
turtle.seth(-180)
37+
turtle.circle(180, 50)
38+
turtle.end_fill()
39+
turtle.done()

yeke/py-flag/apple_head.jpg

15.3 KB
Loading

yeke/py-flag/head.jpg

7.28 KB
Loading

yeke/py-flag/head_flag.py

Lines changed: 19 additions & 0 deletions

yeke/py-flag/sc.jpg

33.3 KB
Loading

yeke/py-flag/sc_head.jpg

16.2 KB
Loading

0 commit comments

Comments
 (0)