def test2(): for i in range(3): try: a = int(input('输入一个整数:')) a != 0 print(10/a) except AssertionError: print('断言失败')
test2()