Commit 237688ad by BellCodeEditor

auto save

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