异常处理

try :

except 类型或元祖:

print()

 

 try:

except Exception:

print()

 

try:

except 类型:

print()

else:

class Err(Exceptiong)

pass

if name=='

raise err()

 

assert 

 

posted on 2018-12-20 15:49  paulgeo  阅读(103)  评论(0)    收藏  举报