Compare commits

..

1 Commits

Author SHA1 Message Date
sairate 230c0ce150 更新 2024.7.16.py
Signed-off-by: sairate <sairate@sina.cn>
2024-07-16 10:31:10 +08:00
6 changed files with 4 additions and 118 deletions

View File

@ -1,35 +0,0 @@
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()

View File

@ -9,11 +9,11 @@ for j in range(100):
t.penup()
t.goto(x,y)
t.pendown()
for i in range(0,6):
r = random.random()
g = random.random()
b = random.random()
t.pencolor(1, g, b)
for i in range(0,6):
t.forward(step)
t.penup()
t.backward(step//2)

View File

@ -1,11 +0,0 @@
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()#画圆

View File

@ -1,44 +0,0 @@
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()

View File

View File

@ -1,24 +0,0 @@
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()