Commit 5fd56d48 by BellCodeEditor

save project

parent 36ac28bf
Showing with 12 additions and 8 deletions
import turtle
screen=turtle.Screen()
screen.textinput("姓名框""你的名字是:")
turtle.done()
\ No newline at end of file
......@@ -2,17 +2,17 @@
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len)
len=sxreen.textinput("提示","你想要多大的爱心呀?")
lovesize=int(len)
pen=turtle.Pen()
pen.write("你好\nSB.",font=("Times",30,"normal"))
pen.hideturtle()
len=60
pen1.left(45)
pen1.forward(len)
pen1.circle(len/2,180)
pen1.forward(lovesize)
pen1.circle(lovesize/2,180)
pen1.right(90)
pen1.circle(len/2,180)
pen1.forward(len)
pen1.circle(lovesize/2,180)
pen1.forward(lovesize)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
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