Commit d0ba98f8 by BellCodeEditor

save project

parent c66a449e
Showing with 26 additions and 20 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("light blue") turtle.dot(400,"red")
len=screen.textinput("100","100") turtle.dot(320,"white")
len=int(len) turtle.dot(250,"red")
pen=turtle.Pen() turtle.dot(150,"blue")
pen.write("你好\nSB.",font=("Times",30,"normal")) turtle.color("white")
pen.hideturtle() turtle.up()
len=60 turtle.fd(-75)
pen.penup() turtle.left(90)
pen.goto(100,100) turtle.fd(20)
pen.pendown() turtle.right(90)
pen.pensize(5) turtle.down()
pen.pencolor("red") turtle.fd(150)
pen.left(45) turtle.right(144)
pen.forward(2*len) turtle.fd(150)
pen.circle(len,180) turtle.right(144)
pen.right(90) turtle.fd(150)
pen.circle(len,180) turtle.right(144)
pen.forward(2*len) turtle.fd(150)
turtle.right(144)
turtle.fd(150)
turtle.right(144)
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