Commit 1e586bf2 by BellCodeEditor

auto save

parent f7d50ea9
Showing with 12 additions and 20 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() penl=turtle.Pen()
screen.bgcolor("light blue") penl.pensize(10)
len=screen.textinput("100","100") penl.pencolor("red")
len=int(len) penl.left(45)
pen=turtle.Pen() penl.forward(100)
pen.write("你好\n老师.",font=("Times",30,"normal")) penl.circle(50,180)
pen.hideturtle()
len=60 penl.right(90)
pen.penup()
pen.goto(100,100) penl.circle(50,180)
pen.pendown() penl.forward(100)
pen.pensize(5) penl.hideturtle()
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() 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