Commit 65917df6 by BellCodeEditor

save project

parent 4eda0e5f
Showing with 18 additions and 15 deletions
import turtle import turtle
p=turtle.Pen() p=turtle.Pen()
s=turtle.Screen() s=turtle.Screen()
p.pencolor("red") p.pencolor("light yellow")
s.bgcolor("light yellow") s.bgcolor("red")
p.write("将进酒\n作者李白",font=("Times",20,"normal")) p.write("你干嘛~\n嗨嗨哟!",font=("Times",20,"normal"))
len=60 p.penup()
pen.penup() p.goto(100,100)
pen.goto(100,100) p.pendown()
pen.pendown() p.pensize(5)
pen.pensize(5) p.pencolor("yellow")
pen.pencolor("red") p.fillcolor("light yellow")
pen.left(45) p.begin_fill()
pen.forward(2*len) p.left(45)
pen.circle(len,180) p.forward(100)
pen.right(90) p.circle(50,180)
pen.circle(len,180) p.right(90)
pen.forward(2*len) p.circle(50,180)
p.forward(100)
p.end_fill()
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