Compare commits

...

2 Commits

Author SHA1 Message Date
10-4 be123df517 Signed-off-by: 10-4 <10-4@sairate.fun> 2024-07-18 08:42:36 +08:00
10_2 eee0927ce9 10-2 2024-07-17 10:04:45 +08:00
5 changed files with 114 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()

11
2024.7.17.1.py Normal file
View File

@ -0,0 +1,11 @@
import turtle #将turtle函数启动
turtle.forward()#前进
turtle.backward#后退
turtle.Turtle()#将turtle的功能赋值给XXX
turtle.done()#结束绘制并将画面停留
turtle.penup()#抬笔
turtle.pendown()#落笔
turtle.begin_fill()#开始填充
turtle.fillcolor()#填充颜色
turtle.end_fill()#结束填充
turtle.circle()#画圆

44
2024.7.17.py Normal file
View File

@ -0,0 +1,44 @@
import turtle
t=turtle.Turtle()
t.begin_fill()
t.color('blue')
t.circle(100)
t.filling()
t.end_fill()
t.begin_fill()
t.color('white')
t.circle(80)
t.filling()
t.end_fill()
t.penup()
t.goto(0,90)
t.pendown()
t.begin_fill()
t.color('red')
t.circle(15)
t.filling()
t.end_fill()
t.pencolor('black')
t.right(90)
t.forward(60)
t.penup()
t.backward(125)
t.pendown()
t.begin_fill()
t.circle(15)
t.fillcolor('white')
t.filling()
t.end_fill()
t.penup()
t.left(90)
t.forward(2)
t.right(90)
t.pendown()
t.begin_fill()
t.circle(8)
t.fillcolor('black')
t.end_fill()
t.begin_fill()
t.circle(5)
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()