K12教育赛事综合服务平台
专注青少年竞赛题库网站
聚乐之家官方网站
下载聚乐之家官方App
给定Python定义的计算矩形体积的函数如下:
def vol(length,width,height): v = length * width * height return v
s = vol(3,4,7) print(s)
s = vol(3, 7,width=4) print(s)
s = vol(3,height=7,width=4) print(s)
s = vol(3, width=4,height=7) print(s)