Commit 56a9f587 by BellCodeEditor

save project

parent 96dbc2ac
Showing with 5 additions and 2 deletions
len=60 len=60
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light green") screen.bgcolor("skyblue")
x=turtle.Pen() x=turtle.Pen()
x.penup() x.penup()
x.goto(100,-100) x.goto(100,-100)
x.write("葡萄美酒夜光杯,\n你是一个大傻杯。",font=("Times",13,"normal")) x.write("葡萄美酒夜光杯,\n你是一个大傻杯。",font=("Times",13,"normal"))
x.hideturtle() x.hideturtle()
a=turtle.Pen() a=turtle.Pen()
a.pencolor("red") a.fillcolor("red")
a.begin_fill()
a.pencolor("black")
a.pensize(5) a.pensize(5)
a.left(45) a.left(45)
a.forward(len*2) a.forward(len*2)
...@@ -16,6 +18,7 @@ a.circle(len,180) ...@@ -16,6 +18,7 @@ a.circle(len,180)
a.right(90) a.right(90)
a.circle(len,180) a.circle(len,180)
a.forward(len*2) a.forward(len*2)
a.end_fill()
a.hideturtle() a.hideturtle()
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