Commit 0d7acb9f by BellCodeEditor

auto save

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