Commit e39a7579 by BellCodeEditor

save project

parent 21254444
Showing with 4 additions and 4 deletions
import turtle import turtle
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=screen.textinput("www","100") len=screen.textinput("病毒提示","你敢输入数字吗?")
len1=int(len) len1=int(len)
lovesize1=int()
pen=turtle.Pen() pen=turtle.Pen()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.pencolor("red")
...@@ -19,6 +18,6 @@ pen.forward(2*len1) ...@@ -19,6 +18,6 @@ pen.forward(2*len1)
pen.end_fill() pen.end_fill()
pen.penup() pen.penup()
pen.goto(100,0) pen.goto(100,0)
pen.write("www",font=("Times",20,"normal")) pen.write("你中毒了!",font=("Times",20,"normal"))
pen.hideturtle() pen.hideturtle()
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