Commit e928afbd by BellCodeEditor

save project

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