Commit 3e1edf18 by BellCodeEditor

save project

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