diff --git a/f.py b/f.py index 057c7e4..f0af59e 100644 --- a/f.py +++ b/f.py @@ -1,14 +1,15 @@ 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