编程题
20.
如下函数返回两个数的平方和与n的乘积,请补充横线处代码。
n=2
def psum(
①
):
②
return(a**2+b**2)*n
【正确答案】
n=2
def psum(a,b):
global n
return(a**2+b**2)*n
【答案解析】
提交答案
关闭