Commit d85f1dfd by BellCodeEditor

save project

parent 57c31de5
Showing with 30 additions and 0 deletions
import turtle
#添加背景颜色
a=turtle. Screen()
a.bgcolor("light bule")
#写文字
pen=turtle.Pen()
#移动位置
pen.penup()
pen.goto(100,-100)
pen.write("酒醉花开民之曰,\n其名天若弃我,世当谬灭。\n___悟空",font=("楷体",20,"normal"))
pen.hideturtle()
#画爱心
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
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