Commit 04735352 by BellCodeEditor

save project

parent 7effbc52
Showing with 15 additions and 10 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
pen.pensize(5) screen=turtle.Screen()
pen.pencolor("red") pen.penup()
pen.left(45) pen.goto(-100,100)
pen.forward(100) pen.write("你好\n呀",font = ("Times",50,"normal"))
pen.circle(50,180) screen.bgcolor("yellow")
pen.right(90) pen.pendown()
pen.circle(50,180) len=screen.textinput("len","你想要多大的三角形?")
pen.forward(100) len=int(len)
pen.forward(len)
pen.left(120)
pen.forward(len)
pen.left(120)
pen.forward(len)
pen.hideturtle()
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