# 捕获全部异常try: num_one = int(input("请输入被除数:")) num_two = int(input("请输入除数:")) print("结果为:", num_one / num_two)except Exception as error: print("出错了,出错原因为", error)