Commit 4b902ae8 by BellCodeEditor

save project

parent 91e88045
Showing with 4 additions and 2 deletions
import turtle
turtle.write("你好",font=("Times",50,"normal"))
turtle.bgcolor("orange")
turtle.bgcolor("green")
b=turtle.Pen()
s=int(turtle.textinput("chicun","0-100"))
b.color("red")
b.pensize(4)
b.penup()
b.goto(0,0)
b.goto(-40,0)
b.pendown()
b.left(45)
b.forward(2*s)
......@@ -14,5 +14,6 @@ b.circle(s,180)
b.right(90)
b.circle(s,180)
b.forward(2*s)
b.hideturtle()
turtle.hideturtle()
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