Commit 2a29b03f by BellCodeEditor

save project

parent bc558c25
Showing with 15 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen=turtle.Pen() # pen=turtle.Pen()
pen.write("Hi,诺依~/n用Python电子贺卡真是太有趣啦~\n我也喜欢Python~\n——悟空", # pen.write("Hi,诺依~/n用Python电子贺卡真是太有趣啦~\n我也喜欢Python~\n——悟空",
font=("Times",30,"normal")) # font=("Times",30,"normal"))
pen.hideturtle() # pen.hideturtle()
# turtle.done()
penl=turtle.Pen()
penl.pencolor("red")
penl.pensize(5)
penl.left(45)
penl.forword(100)
penl.circle(50,180)
penl.right(98)
penl.circle(50,180)
penl.forward(100)
penl.hideturtle()
turtle.done() 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