Commit 345f054b by BellCodeEditor

save project

parent ecdeb9ad
Showing with 22 additions and 3 deletions
#导入模块
import turtle
s=turtle.Screen()
s.bgcolor("light blue")
#创建画笔###
t=turtle.Pen()
t.penup()
t.goto(100,-100)
#开始写字
t.write("hallo,文瀚森\n你是在周六的班级里吗?\n我会来找你的",font=("Times",20,"normal"))
t.write("hallo,文瀚森\n你是在周六的班级里吗?\n我会来找你的",font=("Times",15,"normal"))
t.hideturtle()
import random
a_a=[60,50,40,30,70,80,90,100]
a=random.choice(a_a)
t1=turtle.Pen()
t1.pencolor("red")
t1.pensize(10)
t1.fillcolor("pink")
t1.begin_fill()
t1.left(45)
t1.forward(a*2)
t1.circle(a,180)
t1.right(90)
t1.circle(a,180)
t1.forward(a*2)
t1.end_fill()
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment