Commit 65917df6 by BellCodeEditor

save project

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