Commit 0cbf4d26 by BellCodeEditor

save project

parent bfdafe9e
Showing with 3 additions and 28 deletions
import turtle
#背景
screen=turtle.Screen()
screen.bgcolor("red")
#写字笔
pen=turtle.Pen()
pen.penup()
pen.goto(100,80)
pen.write("诺依,你好!\n我会用python编辑器了,\n很好用哦",font=("times",20,"normal"))
pen.hideturtle()
#画心笔
pen1=turtle.Pen()
pen1.pensize(5)
pen1.pencolor("red")
#爱心的大小
pen1.penup()
len=60
pen1.goto(-10,100)
pen1.pendown()
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.hideturtle()
turtle.done()
pen==tuple.Pen()
pen.write("你好啊、\n诺饴能和你",font=("times",30,"normal"))
pen.hide
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