Commit 77f61e08 by BellCodeEditor

save project

parent 166d528e
Showing with 15 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen=turtle.Pen() # pen=turtle.Pen()
pen.write("《早发白帝城》 祥\n朝辞白帝彩云间,\n千里江陵一日还。\n两岸猿声啼不住,\n轻舟已过万重山。",font=("黑体",20,"normal")) # pen.write("《早发白帝城》 祥\n朝辞白帝彩云间,\n千里江陵一日还。\n两岸猿声啼不住,\n轻舟已过万重山。",font=("黑体",20,"normal"))
pen.hideturtle() # pen.hideturtle()
turtle.done() pen1=turtle.Pen()
pen1.fillcolor("red")
pen1.begin_fill()
pen1.left(45)
pen1.fd(200)
pen1.circle(100,180)
pen1.right(90)
pen1.circle(100,180)
pen1.fd(200)
pen1.end_fill()
turtle.done()
\ No newline at end of file
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