Commit 0034fd35 by BellCodeEditor

save project

parent 07858a54
Showing with 29 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle as t
s=t.Screen()
p=t.Pen()
len=float(s.textinput("提示","输入大小"))
s.bgcolor(1,0.5,0.4)
p.penup()
p.pensize(2)
p.speed(0)
p.fillcolor(1,0,0)
p.pencolor(0.7,0,0)
p.goto(-50,-150)
p.write("hello",font=("Freestyle Script",60,"normal"))
p.goto(0,-50)
p.pendown()
p.begin_fill()
p.left(45)
p.forward(len*2)
p.circle(len,180)
p.right(90)
p.circle(len,180)
p.forward(len*2)
p.end_fill()
p.hideturtle()
t.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