当前位置:考试网  > 试卷库  > 计算机类  > 等级考试  > 计算机二级  > Python语言程序设计  >  以下程序的输出结果是: def test( b = 2, a = 4): global z z += a * b return z z = 10 print(z, test())
试题预览

以下程序的输出结果是:

def test( b = 2, a = 4):

global z

z += a * b

return z

z = 10

print(z, test())

A、18None
B、1018
C、UnboundLocalError
D、1818
查看答案
收藏
纠错
正确答案:

B

答案解析:

暂无解析

你可能感兴趣的试题

____,sheledalifeofcompleteseclusion.

Toobtainasatisfactoryresult,onemustapplytwo____ofpaintonacleansurface.

Manyartistspredictthatthisbrilliantyoungactor__tobeashinningstar.

患者男,40岁,2周来右侧咬物不适,冷水引起疼痛,近2日来夜间疼痛,影响睡眠,并引起半侧头痛,疼痛不能定位,检查右侧上、下磨牙面均有深的龋洞。对患牙的应急处理为

Duetothebadweathertheplanewas____fortwohours.

扫一扫,手机做题