Commit 5fd56d48 by BellCodeEditor

save project

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