Commit 6964838d by BellCodeEditor

save project

parent c66a449e
Showing with 14 additions and 20 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.lt(45)
pen.goto(100,100) p2.fd(100)
pen.pendown() p2.circle(50,180)
pen.pensize(5) p2.rt(90)
pen.pencolor("red") p2.circle(50,180)
pen.left(45) p2.fd(100)
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