Commit ce1b40d0 by BellCodeEditor

save project

parent a50ceeec
Showing with 22 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
S=turtle.Screen()
S.bgcolor("Pink")
Pen=turtle.Pen()
Pen.penup()
Pen.goto(100,-100)
Pen.write("莫等閑,\n白了少年頭,\n空悲切。",font=("times",30,"normal"))
Pen.hideturtle()
#畫愛心
len=123
Pen1=turtle.Pen()
Pen1.pencolor("red")
Pen1.pensize(5)
Pen1.left(45)
Pen1.forward(len)
Pen1.circle(len/2,180)
Pen1.right(90)
Pen1.circle(len/2,180)
Pen1.forward(len)
Pen1.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