Commit a4b25ff6 by BellCodeEditor

save project

parent 654bc3ba
Showing with 27 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
#背景颜色
screen=turtle.Screen()
screen=bgcolor("pink")
#写字
pen=turtle.pen()
pen.penup()
pen.goto(100,-100)
pen.write("你好!\n我喜欢编程"font=("Times",20,"normal"))
pen.hideturtle()
turtle.done()
#画爱心
penl=turtle.pen()
penl.pencolor("red")
penl.pensize(5)
penl.left(45)
penl.forward(100)
penl.circle(50,180)
penl.right(90)
penl.circle(50,180)
penl.forward(100)
penl.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