Commit 237688ad by BellCodeEditor

auto save

parent 1b9992fb
Showing with 8 additions and 2 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("right blue")
screen.bgcolor("light blue")
pen.penup()
pen.goto(100,-100)
pen.write("come的喂\nABC",font=("Times",20,"normal"))
pen.write("你爱\n我么?",font=("Times",20,"normal"))
pen.goto(0,0)
pen.pendown()
lg=50
len=int(lg)
pen.fillcolor("red")
pen.begin_fill()
pen.pencolor("red")
pen.hideturtle()
......@@ -19,4 +20,8 @@ pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.end_fill()
while lg == "爱":
lg=screen.textinput("提示","你爱\n我么?")
if not lg == "不":
print("谢谢!")
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