Commit cede57da by BellCodeEditor

save project

parent 5972b61c
Showing with 3 additions and 2 deletions
......@@ -3,7 +3,9 @@ import turtle
# turtle.write("你好",font=("黑体",50))
# turtle.done()
# 画爱心
r=int(input("半径:"))
turtle.pensize(5)
r=turtle.textinput("提示","半径")
r=int(r)
turtle.bgcolor("orange")
turtle.pencolor("red")
turtle.left(45)
......@@ -13,5 +15,4 @@ turtle.right(90)
turtle.circle(r,180)
turtle.forward(2*r)
print(r)
pen(5)
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