Commit 806ab76e by BellCodeEditor

save project

parent 2a8b34bd
Showing with 663 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
# pen=turtle.Pen() screen=turtle.Screen()
# pen.write("依诺\n给我滚!",font=("Times",30,"normal")) pen=turtle.Pen()
# pen.hideturtle() pen.penup()
# turtle.done() 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