Commit 26eae521 by BellCodeEditor

save project

parent cc0c0380
Showing with 7 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("pink") screen.bgcolor("pink")
...@@ -8,14 +9,15 @@ pen.penup() ...@@ -8,14 +9,15 @@ pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("鹅鹅鹅,\n曲项向天歌,\n白毛浮绿水,\n红掌拨清波。",font=("Times",20,"normal")) pen.write("鹅鹅鹅,\n曲项向天歌,\n白毛浮绿水,\n红掌拨清波。",font=("Times",20,"normal"))
pen.hideturtle() pen.hideturtle()
len=60
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.color("red") pen1.color("red")
pen1.pensize(5)
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(2*len)
pen1.circle(50,180) pen1.circle(len,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(len,180)
pen1.forward(100) pen1.forward(len*2)
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