def func(num,div):
assert (div != 0),"div不能为0"
return num / div
res = func(3, 2)
print(res)
res1 = func(2, 0)
print(res1)
def func(num,div):
assert (div != 0),"div不能为0"
return num / div
res = func(3, 2)
print(res)
res1 = func(2, 0)
print(res1)