Commit d0e2fb0c by BellCodeEditor

save project

parent bdf7e828
Showing with 7 additions and 1 deletions
......@@ -18,7 +18,8 @@ pen1.begin_fill()
pen1.penup()
pen1.goto(-120,-50)
pen1.pendown()
len = 100
len = int(screen.textinput("提示框","你想要多大的爱心:"))
pen1.left(45)
pen1.forward(len*2)
pen1.circle(len,180)
......
import turtle
screen = turtle.Screen()
len = screen.textinput("提示","你想要多大的爱心?:")
lovesize = int(len)
\ 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