Commit 6cdc13cd by BellCodeEditor

save project

parent 6710cd58
Showing with 6 additions and 5 deletions
import turtle
a=int(input("请输入要画的爱心大小:"))
a=turtle.textinput("爱心","大小是多少:")
b=int(a)
turtle.bgcolor("skyblue")
turtle.hideturtle()
turtle.color("red")
......@@ -7,11 +8,11 @@ turtle.pensize(10)
turtle.speed(0)
turtle.begin_fill()
turtle.left(45)
turtle.forward(2*a)
turtle.circle(a,180)
turtle.forward(2*b)
turtle.circle(b,180)
turtle.right(90)
turtle.circle(a,180)
turtle.forward(2*a)
turtle.circle(b,180)
turtle.forward(2*b)
turtle.end_fill()
turtle.color("black")
turtle.penup()
......
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