以下程序的输出结果是()。 deffun1(): print(“infun1()”) fun2() fun1() deffun2(): print(“infun2()”) fun1() fun2()
A. infun1() infun2()
B. infun1()
C. 死循环
D. 程序运行错误
查看答案
以下程序的输出结果是()。 s=0 deffun(num): try: s+=num returns except: return0 return5 print(fun(2))
A. 0
B. 2
C. UnboundLocalError
D. 5
以下程序的输出结果是()。 deftest(b=2,a=4): globalz z+=a*b returnz z=10 print(z,test())
A. 18None
B. 1018
C. UnboundLocalError
D. 1818
以下程序的输出结果是:()。 defcalu(x=3,y=2,z=10): return(x**y*z) h=2 w=3 print(calu(h,w)) #2的3次方*10
A. 90
B. 70
C. 60
D. 80
调用以下函数返回的值() defmyfun(): pass
A. 0
B. 出错不能运行
C. 空字符串
D. None