Commit e65f8d1c by BellCodeEditor

save project

parent 07858a54
Showing with 34 additions and 0 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light yellow")
pen.write("日照香炉生紫烟,\n遥看瀑布挂前川。",font=("Times",30,"normal"))
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(10)
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.hideturtle()
turtle.done()
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light yellow")
pen.write("日照香炉生紫烟,\n遥看瀑布挂前川。",font=("Times",30,"normal"))
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(10)
a=screen.textinput("爱心的大小","你想要多大的爱心?(整数)")
c=int(a)
pen1.left(45)
pen1.forward(2*c)
pen1.circle(c,180)
pen1.right(90)
pen1.circle(c,180)
pen1.forward(2*c)
pen1.hideturtle()
turtle.done()
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