如果程序运行时从键盘输入“1.234” 下面程序的运行结果是()。 try: a=int(input(a number:)) 1 /
已帮助 人
如果程序运行时从键盘输入“1.234”,下面程序的运行结果是()。 try: a=int(input("a number:")) 1 / a except ZeroDivisionError : print("division by zero!") except ValueError: print("value is not an integer!") else: print("That went well!") finally: print("Cleaning up.")
A.value is not an integer! Cleaning up.
B.division by zero! Cleaning up.
C.That went well! Cleaning up.
D.value is not an integer!

回答
共1条回复-
A
