Commit 3218d784 by BellCodeEditor

save project

parent b1ac2131
Showing with 2 additions and 2 deletions
...@@ -10,8 +10,7 @@ pen.goto(100,0) ...@@ -10,8 +10,7 @@ pen.goto(100,0)
pen.write("你好\n哈喽",font=("Times",30,"normal")) pen.write("你好\n哈喽",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
len=50 len=int(screen.textinput("提示","你想要的爱心:"))
pen2 = turtle.Pen() pen2 = turtle.Pen()
pen2.left(45) pen2.left(45)
pen2.forward(2*len) pen2.forward(2*len)
...@@ -27,3 +26,4 @@ turtle.done() ...@@ -27,3 +26,4 @@ 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