学习-Python模块之包的使用
# 请在下面的 Begin-End 之间按照注释中给出的提示编写正确的代码
########## Begin ##########
# 第一步:导入 package 包内的模块 ellipse
from package.circle import ellipse
# 第二步:使用 input 函数获取椭圆的长半轴和短半轴
R=int(input())
r=int(input())
# 第三步:调用 ellipse 模块中的 area 方法求椭圆面积
s=ellipse.area(r,R)
print("椭圆的面积为%s"%s)
########## End ##########
练习-Python模块之包的使用
# 请在下面的 Begin-End 之间按照注释中给出的提示编写正确的代码
########## Begin ##########
# 导入 sphere 模块,调用其 area 方法求球的表面积
from package.circle import sphere
r=int(input())
s=sphere.area(r)
print("球的表面积为%.2f平方米"%s)
########## End ##########