Commit 0837c4b0 by BellCodeEditor

auto save

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