Commit 9d7f507d by BellCodeEditor

save project

parent 72b1a107
Showing with 7 additions and 4 deletions
......@@ -3,12 +3,15 @@ import turtle
# turtle.write('彭俊源',font=("黑体",50))
# turtle.done()
#画爱心
r=int(input("半径:"))
turtle.pencolor("red")
turtle.pensize(5)
turtle.left(45)
turtle.forward(100)
turtle.circle(50,180)
turtle.forward(2*r)
turtle.circle(r,180)
turtle.right(90)
turtle.circle(50,180)
turtle.forward(100)
turtle.circle(r,180)
turtle.forward(r*2)
d=2*r
print(d)
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