Commit 97e2c410 by BellCodeEditor

save project

parent c1576ac2
Showing with 12 additions and 6 deletions
...@@ -6,15 +6,15 @@ p.penup() ...@@ -6,15 +6,15 @@ p.penup()
p.goto(100,-100) p.goto(100,-100)
p.write("a'a'a'a'saaaas",font=("Times",30,"normal")) p.write("a'a'a'a'saaaas",font=("Times",30,"normal"))
p.penup() p.penup()
le=screen.textinput("提示","你想要多大的爱心啊?")
len=int(le)
p1=turtle.Pen() p1=turtle.Pen()
p1.pensize(10) p1.pensize(10)
p1.pencolor("red") p1.pencolor("red")
p1.left(45) p1.left(45)
p1.forward(100) p1.forward(2*len)
p1.circle(50,180) p1.circle(len,180)
p1.right(90) p1.right(90)
p1.circle(50,180) p1.circle(len,180)
p1.forward(100) p1.forward(2*len)
turtle.done turtle.done
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是:")
turtle.done()
\ 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