Commit 4f6f2488 by BellCodeEditor

save project

parent 7fe288c0
Showing with 11 additions and 20 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() turtle.fillcolor("pink")
screen.bgcolor("light blue") turtle.pensize(6)
len=screen.textinput("100","100") turtle.pencolor("pink")
len=int(len) turtle.begin_fill()
pen=turtle.Pen() turtle.lt(45)
pen.write("你好\nSB",font=("Times",100,"normal")) turtle.fd(100)
pen.hideturtle() turtle.circle(50,180)
len=60 turtle.rt(90)
pen.penup() turtle.circle(50,180)
pen.goto(100,100) turtle.fd(100)
pen.pendown() turtle.end_fill()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
turtle.done() 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