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