Commit 60ef3e18 by BellCodeEditor

save project

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