标签:bsp exce __str__ exception except message ini int div
class Myexception(Exception): def __init__(self,message): self.message=message def __str__(self): return self.message try: raise Myexception("我错了") except Myexception as e: print(e)
标签:bsp exce __str__ exception except message ini int div
原文地址:https://www.cnblogs.com/yangzhen-ahujhc/p/12304557.html