Signed-off-by: 10-4 <10-4@sairate.fun>

This commit is contained in:
10-4 2024-07-18 08:42:36 +08:00
parent eee0927ce9
commit be123df517
3 changed files with 59 additions and 0 deletions

35
2024.4.7.1.py Normal file
View File

@ -0,0 +1,35 @@
import turtle
turtle.speed(0)
def wujiao(size,x,y,angle=0):
turtle.penup()
turtle.goto(x,y)
turtle.setheading(angle)
turtle.pendown()
turtle.color("yellow","yellow")
turtle.begin_fill()
for i in range(5):
turtle.forward(size)
turtle.left(72)
turtle.forward(size)
turtle.right(144)
turtle.end_fill()
turtle.color('red','red')
turtle.begin_fill()
turtle.penup()
turtle.goto(-300,200)
turtle.pendown()
turtle.goto(300,200)
turtle.goto(300,-200)
turtle.goto(-300,-200)
turtle.goto(-300,200)
turtle.end_fill()
wujiao(30, -250, 150)
wujiao(9, -170, 180, 30)
wujiao(9, -140, 145, 45)
wujiao(9, -148, 120, 0)
wujiao(9, -170, 90, -30)
turtle.penup()
turtle.goto(0,0)
turtle.pendown()
turtle.write("中国",font=("华文行楷",50))
turtle.done()

0
2024.7.18.py Normal file
View File

24
2024.7.4.py Normal file
View File

@ -0,0 +1,24 @@
import turtle
t=turtle.Turtle()
t.speed(0)
t.pencolor('yellow')
t.fillcolor(255/255,165/255,0)
t.begin_fill()
for b in range(10):
t.left(35)
for a in range(5):
t.forward(100)
t.left(72)
t.forward(100)
t.right(144)
t.end_fill()
t.pencolor('red')
t.speed(0)
t.fillcolor('yellow')
t.begin_fill()
for j in range(12):
for i in range(36):
t.forward(300)
t.left(170)
t.left(30)
t.end_fill()