Commit 169bf176 by BellCodeEditor

save project

parent 3991e105
Showing with 8 additions and 4 deletions
...@@ -3,10 +3,13 @@ import turtle ...@@ -3,10 +3,13 @@ import turtle
#创建画笔 #创建画笔
pen = turtle.Pen() pen = turtle.Pen()
#写字 #写字
# pen.write(' 《红豆》\n红豆生南国,\n春来发几枝。\n愿君多采撷,\n此物最相思。',font=('黑体',30,'normal')) pen.write(' 《红豆》\n红豆生南国,\n春来发几枝。\n愿君多采撷,\n此物最相思。',font=('黑体',30,'normal'))
pen.penup()
pen.color("dark blue") pen.goto(-100,0)
pen.fillcolor("gold") pen.pendown()
pen.color("gold")
pen.pensize(3)
pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
pen.lt(45) pen.lt(45)
pen.fd(100) pen.fd(100)
...@@ -15,6 +18,7 @@ pen.right(90) ...@@ -15,6 +18,7 @@ pen.right(90)
pen.circle(50,180) pen.circle(50,180)
pen.fd(100) pen.fd(100)
pen.end_fill() pen.end_fill()
pen.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