Commit 9d66b2df by BellCodeEditor

auto save

parent 2f550581
Showing with 27 additions and 21 deletions
# 利用write()帮助悟空给诺依回信吧~ #a=int(input("请输入任意地三位整数:"))
#x=a%10
#b=a//10%10
#c=a//100%10
import turtle import turtle
screen=turtle.Screen() turtle.pencolor("red")
len=screen.textinput("提示","你的爱心要多大") turtle.pensize(5)
len=int(len) turtle.forward(200)
screen.bgcolor("blue") turtle.right(144)
turtle.forward(200)
pen=turtle.Pen() turtle.right(144)
pen.write("你好\n王禹然.",font=("Times",30,"normal")) turtle.forward(200)
pen.hideturtle() turtle.right(144)
pen.penup() turtle.forward(200)
pen.goto(100,100) turtle.right(144)
pen.pendown() turtle.forward(200)
pen.pensize(5) turtle.right(144)
pen.pencolor("red")
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180) turtle.hideturtle()
pen.forward(len*2)
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