Commit c7e5373d by BellCodeEditor

save project

parent 7b7303d8
Showing with 12 additions and 4 deletions
......@@ -7,16 +7,18 @@ pen.goto(0,-150)
pen.write("1*1=2\n1*2=2 2*2=4\n1*3=3 2*3=6 3*3=9\n1*4=4 2*4=8 3*4=12 4*4=16\n1*5=5 2*5=10 3*5=15 4*5=20 5*5=25\n1*6=6 2*6=12 3*6=18 4*6=24 5*6=30 6*6=36\n1*7=7 2*7=14 3*7=21 4*7=28 5*7=35 6*7=42 7*7=49\n",font=("Times",10,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
len=screen.textinput("提示","你想要多大的爱心:")
lovesize=int(len)
pen1.pencolor("pink")
pen1.pensize(15)
pen1.fillcolor("red")
pen1.begin_fill()
pen1.left(45)
pen1.forward(180)
pen1.circle(90,180)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(90,180)
pen1.forward(180)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
pen1.end_fill()
pen1.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是:")
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