Commit 776f903c by BellCodeEditor

save project

parent cd5b4a9e
Showing with 21 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light green") screen.bgcolor("light green")
...@@ -8,14 +7,15 @@ pen.goto(100,-100) ...@@ -8,14 +7,15 @@ pen.goto(100,-100)
pen.write("望庐山瀑布\n唐[李白]\n日照香炉生紫烟,\n遥看瀑布挂前川.\n飞流直下三千尺,\n疑是银河落九天.",font=("Times",20,"normal")) pen.write("望庐山瀑布\n唐[李白]\n日照香炉生紫烟,\n遥看瀑布挂前川.\n飞流直下三千尺,\n疑是银河落九天.",font=("Times",20,"normal"))
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen() pen1=turtle.Pen()
len=80
pen1.fillcolor("red") pen1.fillcolor("red")
pen1.begin_fill() pen1.begin_fill()
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(len*2)
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)
pen1.end_fill() pen1.end_fill()
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
...@@ -23,3 +23,19 @@ turtle.done() ...@@ -23,3 +23,19 @@ 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