Commit 6ca91c47 by BellCodeEditor

auto save

parent 6b9f80b1
Showing with 11 additions and 0 deletions
try:
a = int(input("输入被除数:"))
b = int(input("输入除数:"))
c = a / b
print("您输入的两个数相除的结果是:", c )
except ValueError:
print("程序发生了数字格式异常、算术异常之一")
except :
print("未知异常")
print("程序继续运行")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment