Commit cfd76d3e by BellCodeEditor

save project

parent ef70b8eb
Showing with 17 additions and 8 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("blue")
len=screen.textinput("提示","你想要多大的爱心")
a=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("你好\nSB.",font=("Times",30,"normal")) pen.write("你好\nSB.",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
pen.pendown() pen.pendown()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.pencolor("red")
pen.left(45) pen1=turtle.Pen()
pen.forward(100) pen1.left(45)
pen.circle(50,180) pen1.forward(2*a)
pen.right(90) pen1.circle(a,180)
pen.circle(50,180) pen1.right(90)
pen.forward(100) pen1.circle(a,180)
turtle.done() pen1.forward(2*a)
\ No newline at end of file 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