# coding:utf-8
def num_div(num1,num2):
try:
assert isinstance(num1,int)
except AssertionError:
print(num1,'num1不是int类型')
try:
assert isinstance(num2,int)
except AssertionError:
print(num1,'num2不是int类型')
print(num1,num2)
# num_div('1','2')
num_div(1 ,2)
# assert断言后面是一个表达式,如果表示返回真,则断言成功,程序能够继续往下执行,
# 如果表达式返回假,则断言失败,assert会抛出异常AssertionError,终止程序继续往下执行