Commit 3f0d31d5 by BellCodeEditor

save project

parent c2f1308f
Showing with 23 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file
#利用write()帮助悟空给诺依回信吧~
import turtle
p=turtle.Pen()
#创建背景
s=turtle.Screen()
s.bgcolor("pink")
p.pensize(10)
p.pencolor("red")
# s.textinput("姓名框","你的名字是:")
len=s.textinput("提示","你想要多大的爱心:")
sb=int(len)
p.right(45)
p.forward(sb*2)
p.left(90)
p.forward(sb*2)
p.circle(sb,180)
p.right(90)
p.circle(sb,180)
p.penup()
p.goto(100,-100)
p.write("大SB诺伊,你长得真丑",font=("仿宋",30,"normal"))
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