Commit 89472156 by BellCodeEditor

save project

parent 654bc3ba
Showing with 25 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("lightblue")
pen.penup()
pen.goto(200,0)
pen.pencolor("green")
pen.write("1234\n5678",font=("Times",30,"normal"))
pen.hideturtle()
# 画心
p=turtle.Pen()
p.pencolor("red")
p.fillcolor("red")
p.pensize(10)
p.left(45)
p.begin_fill()
p.forward(150)
p.circle(75,180)
p.right(90)
p.circle(75,180)
p.forward(150)
p.end_fill()
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