Commit e8f129f0 by BellCodeEditor

auto save

parent ebb3be49
Showing with 1 additions and 22 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
color1=screen.textinput("提示","你想要什么颜色的背景?")
screen.bgcolor(color1)
pen.write("诺依\n你好呀!",font=("Times",30,"normal"))
pen.hideturtle()
len=screen.textinput("提示","你想要多大的爱心?")
color=screen.textinput("提示","你想要什么颜色的爱心?")
lovesize=int(len)
pen1=turtle.Pen()
pen1.pencolor(color)
pen1.pensize(10)
pen1.left(45)
pen1.forward(lovesize)
pen1.circle(lovesize/2,180)
pen1.left(-90)
pen1.circle(lovesize/2,180)
pen1.forward(lovesize)
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