Commit 9a11ef04 by BellCodeEditor

save project

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