以下程序的输出结果是:

s = 0

def fun(num):

try:

s += num

return s

except:

return 0

return 5

print(fun(2))

A、0
B、2
C、UnboundLocalError
D、5
查看答案
正确答案:

A

答案解析:

暂无解析

上一题
你可能感兴趣的试题

______isrecognizedasthenationalflag-carrier.

A、Theprivateairline
B、Thepublicairline
C、Thecharteredairline
D、jetairline

Thegovernmentcalledoutpolicementosuppresstheriot.

A、政府派警察镇压动乱。
B、政府把警察叫出来镇压动乱。
C、政府给警察打电话让他们出去压迫动乱。
D、政府高喊要警察出去镇压动乱。

WepreferChinesebicycles __Japanesebicycles ___theirfinequality.

WithanappropriateconjunctiveLastmonthIboughtawatch.Itischeap,________itgoesquitewell.

Thefirsttaskofabrochureisto_______.

A、savespace
B、savecost
C、attractattention
D、bebeautiful
热门试题 更多>
相关题库更多>
公共基础
Python语言程序设计
MS Office高级应用
Web程序设计
MySQL数据库程序设计
试卷库
试题库