-->
当前位置:首页 > 题库 > 正文内容

单选题:下面程序的输出是什么?

Luz3年前 (2022-05-20)题库1374
下面程序的输出是什么?

try:
x=float("abc123")
print("The conversion is completed")
except IOError:
print("This code caused an IOError")
except ValueError:
print("This code caused an ValueError")
except:
print("An error happened")






A.The conversion is completed


B.This code caused an IOError


C.An error happened


D.This code caused an ValueError




答案:D

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。