例外処理
try: raise ValueError(‘error’) except ValueError, e: print e except IndexError, e: print e except: print ‘error’ finally print ‘final’
0 件のコメント:
コメントを投稿