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