以下程序的输出结果是()。Defmyf(x=2.0,y=4.0):GlobalspSp+=x*yReturn(sp)Sp=100Print(sp,myf(4,3))
(A)112100
(B)100112
(C)100100
(D)112112
查看解析
参考答案
继续答题:下一题


更多二级Python试题
- 1以下关于Python二维数据的描述中,错误的是()。
- 2以下代码的输出结果是()。Ls=["car","truck"]DeffunC(A):Ls.append(A)ReturnFunC("bus")Print(ls)
- 3以下程序的执行结果是()。X=[90,87,93]Y=("Aele","Bob","lala")Z={}Foriinrange(len(x)):Z[x[i]]=y[i]Print(z)
- 4以下代码的输出结果是()。Forsin"PythonNCRE":Ifs=="N":ContinuePrint(s,end="")
- 5以下关于Python循环结构的描述中,错误的是()。
- 6以下代码的输出结果是()。S=[4,2,9,1]S.insert(2,3)Print(s)