r=25
area=3.1415*r*r
print(area)
print("{:.2f}".format(area))
import turtle
turtle.pensize(2)
turtle.circle(10)
turtle.circle(40)
turtle.circle(80)
turtle.circle(160)
TempStr=input("请输入带有符号的温度值:")
if TempStr[-1] in ['F','f']:
c=(eval(TempStr[0:1])-32)/1.8
print("转换后的温度是{:.2f}C".format(c))
elif TempStr[-1] in ['C','c']:
F=1.8*eval(TempStr[0:1])+32
print("转换后的温度是{:.2f}F".format(F))
else:
print("输入的格式错误")
from turtle import *
color('red','red')
begin_fill()
for i in range(5):
fd(200)
rt(144)
end_fill()
done()