Commit dff3ec5c by BellCodeEditor

save project

parent 8624b1ea
Showing with 21 additions and 4 deletions
r=float(input('请输入圆的半径(cm):'))
c=2*3.14*r
s=3.14*r*r
print('半径r的周长是%.2fcm,面积是%.2fcm' % (c,s))
import turtle
a=turtle.Pen()
a.penup()
a.goto(-100,0)
a.write('听我说谢谢你',font=('Tine',30,'normal'))
len=50
a1=turtle.Pen()
a1.pencolor('red')
a1.left(45)
a1.forward(2*len)
a1.circle(len,180)
a1.right(90)
a1.circle(len,180)
a1.forward(2*len)
s=turtle.Screen()
s.bgcolor('yellow')
a.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