Commit 425ce8b8 by BellCodeEditor

save project

parent 6109d2a0
Showing with 22 additions and 5 deletions
import
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen = turtle.Pen () pen1 = turtle.Pen ()
pen.write("你好!",font=("Times,"20,"normal")) pen1.penup()
turtle.done() pen1.goto(100,-100)
\ No newline at end of file pen1.write("我爱你!",font=("Times",20,"normal"))
pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor("#abcdef")
pen.color("red")
pen.pensize (10)
len = int(screen.textinput("提示","请输入爱心大小"))
pen.left(45)
pen.fd(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.fd(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