Commit a0e9f28d by BellCodeEditor

save project

parent 654bc3ba
Showing with 23 additions and 0 deletions
import turtle
screen = turtle.screen()
screen.bgcolor('pinck')
pen1 = turtle.Pen()
pen1.penup()
pen1.goto(100,-100)
pen1.write('sin=0.5\n三角形面积是多少',font=('times',10,'normal'))
pen1.hideturtle()
pen = turtle.Pen()
pen.fillcolor('red')
pen.begin_fill()
pen.pencolor('red')
pen.pensize(5)
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.end_fill()
pen.hideturtle()
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