Commit 631b5807 by BellCodeEditor

save project

parent e5e30eb7
Showing with 18 additions and 9 deletions
import turtle import turtle
#pen=turtle.Pen() turtle.penup()
#pen.write("你好呀",font=("Times",30,"normal")) turtle.goto(100,-100)
#pen.hideturtle() turtle.pendown()
#turtle.done() pen=turtle.Pen()
pen.write("你好呀",font=("Times",30,"normal"))
pen.hideturtle()
len=50
turtle.penup()
turtle.goto(-100,100)
turtle.pendown()
turtle.pensize(10) turtle.pensize(10)
turtle.color("red","red") turtle.color("red","red")
turtle.begin_fill() turtle.begin_fill()
turtle.left(45) turtle.left(45)
turtle.forward(100) turtle.forward(2*len)
turtle.circle(50,180) turtle.circle(len,180)
turtle.right(90) turtle.right(90)
turtle.circle(50,180) turtle.circle(len,180)
turtle.forward(100) turtle.forward(2*len)
turtle.end_fill() turtle.end_fill()
turtle.hide()
screen=turtle.Screen()
screen.bgcolor("pink")
turtle.done() 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