Commit 11d80a0b by BellCodeEditor

save project

parent c2f1308f
Showing with 26 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file import turtle
screen=turtle.Screen()
screen.bgcolor("light yellow")
l=screen.textinput("提示","长度")
len=int(l)
pen=turtle.Pen()
pen.penup()
pen.goto(0,-100)
pen.pendown()
pen.write("dtfgjdfhtd\ndjrasreysrdrhsdfyrthytewujh\nrhjdsfdgnmhkdengjgwe",font=("Times",20,"normal"))
pen.hideturtle()
p=turtle.Pen()
p.pencolor("red")
p.pensize(5)
p.fillcolor("red")
p.begin_fill()
p.left(45)
p.forward(len)
p.circle(len/2,180)
p.right(90)
p.circle(len/2,180)
p.forward(len)
p.end_fill()
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