Commit 368f6936 by BellCodeEditor

auto save

parent 3c0ba83f
Showing with 18 additions and 8 deletions
# # 利用write()帮助悟空给诺依回信吧~
import turtle as t
# pen = t.Pen()
# pen.write('雄关漫道真如铁\n如今迈道从头越',font=('times',30,'normal'))
# pen.hideturtle()
# t.done()
len=30
pen = t.Pen()
sc=t.Screen()
sc.bgcolor('pink')
pen.penup()
pen.goto(20,-100)
pen.write('雄关漫道真如铁\n如今迈道从头越',font=('times',30,'normal'))
pen.hideturtle()
pen1 = t.Pen()
pen1.color('red')
pen1.begin_fill()
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.forward(len*2)
pen1.circle(len,180)
#另一半爱心
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.circle(len,180)
pen1.forward(len*2)
pen1.hideturtle()
pen1.end_fill()
t.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