#断言
a ='testing'
if type(a) is int:
print('error')
assert type(a) is str#为True
assert type(a) is int#为False。错误信息:AssertionError
print('test1')
#断言
a ='testing'
if type(a) is int:
print('error')
assert type(a) is str#为True
assert type(a) is int#为False。错误信息:AssertionError
print('test1')