try:
n=int(input("n="))
print(n)
a=100/n
print(a)
except ZeroDivisionError:
print("除数不能为0")
else:
print("程序正常运行,没有捕捉到异常")
try:
n=int(input("n="))
print(n)
a=100/n
print(a)
except ZeroDivisionError:
print("除数不能为0")
else:
print("程序正常运行,没有捕捉到异常")