Commit 995f0b49 by BellCodeEditor

save project

parent c66a449e
Showing with 12 additions and 22 deletions
# 利用write()帮助悟空给诺依回信吧~ from turtle import*
import turtle # write("诺伊,\n你要戒尺吗",font=("Times",30,"normal"))
screen=turtle.Screen() # hideturtle()
screen.bgcolor("light blue") # done()
len=screen.textinput("100","100") pensize(5)
len=int(len) pencolor("green")
pen=turtle.Pen() left(45)
pen.write("你好\nSB.",font=("Times",30,"normal")) fd(100)
pen.hideturtle() circle(50,180)
len=60 right(90)
pen.penup() circle(50,180)
pen.goto(100,100) fd(100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
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