Commit 7c4d952f by BellCodeEditor

auto save

parent aeb6f608
Showing with 25 additions and 0 deletions
import turtle
#背景颜色
screen=turtle.Screen()
screen.bgcolor("light blue")
#写字
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("Hi,诺伊~\n用Python写电子贺卡真是太有趣啦~\n",font=("Times",30,"normal"))
pen.hideturtle()
#画爱心
pen=turtle.Pen()
pen.pencolor("rad")
pen.pensize(5)
#
len=30
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.hideturtle()
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