Commit 34145da4 by BellCodeEditor

save project

parent 07858a54
Showing with 24 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
qw=turtle.Pen()
s=turtle.Screen()
fg=s.textinput("学习","请设置爱心大小")
s.bgcolor("light green")
fg=int(fg)
qw.write("你好\n我好喜欢电子邮件.",font=("Times",30,"normal"))
qw.hideturtle()
qw.penup()
qw.goto(-110,-100)
qw.pendown()
qw.pencolor("yellow")
qw.pensize(6)
qw.left(45)
qw.forward(2*fg)
qw.circle(fg,180)
qw.right(90)
qw.circle(fg,180)
qw.forward(2*fg)
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