Commit f8602932 by BellCodeEditor

save project

parent 6b516eb8
Showing with 12 additions and 14 deletions
import turtle
......@@ -3,18 +3,14 @@ woshizhizhu=turtle.Screen()
woshizhizhu.bgcolor("light green")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-180)
pen.goto(85,-280)
pen.write("你好\n你被我\n绿了\n戴上了\n珍惜又美丽的\n绿帽帽.",font=("Times",30,"normal"))
pen.hideturtle()
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
turtle.done()
pen.pencolor("green")
pen.circle(50,360)
pen.circle(-50,360)
turtle.done()
\ No newline at end of file
import turtle
woshizhizhu=turtle.Screen()
woshizhizhu.bgcolor("light green")
la=woshizhizhu.textinput("hello欢迎来到电子贺卡站","你想要多大爱心呀")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
......@@ -9,12 +10,13 @@ pen.hideturtle()
pen.penup()
pen.goto(100,100)
pen.pendown()
lala=int(la)
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.forward(lala*2*2)
pen.circle(lala*2,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.circle(lala*2,180)
pen.forward(lala*2*2)
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