Commit 0bb7da03 by BellCodeEditor

save project

parent 654bc3ba
Showing with 22 additions and 0 deletions
# 利用write()帮助悟空给诺
import turtle as t
# pen=t.Pen()
# t.bgcolor('pink')
def huaaixin(len):
t.pu()
t.goto(100,-100)
t.write('诺伊,python真好用。',font=('Times',13,'normal'))
t.goto(0,0)
t.pd()
t.pencolor('red')
t.pensize(5)
t.lt(45)
t.fd(2*len)
t.circle(len,180)
t.rt(90)
t.circle(len,180)
t.fd(2*len)
t.ht()
t.done()
huaaixin(float(input()))
\ 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