Commit cd5b4a9e by BellCodeEditor

save project

parent 4afe796a
Showing with 9 additions and 6 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
# pen=turtle.Pen()
# pen.write("望庐山瀑布\n唐[李白]\n日照香炉生紫烟,\n遥看瀑布挂前川.\n飞流直下三千尺,\n疑是银河落九天.",font=("Times",40,"normal"))
# turtle.done()
# pen.hideturtle()
#爱心
screen=turtle.Screen()
screen.bgcolor("light green")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("望庐山瀑布\n唐[李白]\n日照香炉生紫烟,\n遥看瀑布挂前川.\n飞流直下三千尺,\n疑是银河落九天.",font=("Times",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.fillcolor("red")
pen1.begin_fill()
......@@ -15,8 +17,9 @@ pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.end_fill()
turtle.done()
pen.hideturtle()
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