摘要:
1. raise an exception defined by user. 1 class MyException(Exception): 2 ''' An exception defined by user,inherit from Top Exception''' 3 def __init__(self,length,atleastlength): 4 Exception.__init__(self)#invoking parent __init__() method manually 5 self.length = length 6 .. 阅读全文
posted @ 2014-01-04 14:46
Yu Zi
阅读(402)
评论(0)
推荐(0)
浙公网安备 33010602011771号