Raise exception and catch it,raiseexception,def err():
Raise exception and catch it,raiseexception,def err():
def err(): raise IndexErrordef aFunction(): try: err() except IndexError: print 'caught an index error!' else: print 'no error caught...'if __name__ == '__main__': aFunction()
- Effects of Setting the Default Encoding,effectsencodin
- Use the unicode() function produce a corresponding Unico
- Key action: keypressed,actionkeypressed,from Tkinter
- Image button mouse action: mouse in, out and rollover,
- Mouse events on a frame: Mouse entered,eventsentered,f
- Mouse events on a frame: Mouse left,mouseevents,from T
热门文章:
相关内容
- Effects of Setting the Default Encoding,effectsencoding,import sys
- Use the unicode() function produce a corresponding Unicode string fro
- Key action: keypressed,actionkeypressed,from Tkinter
- Image button mouse action: mouse in, out and rollover,mouserollover
- Mouse events on a frame: Mouse entered,eventsentered,from Tkinter
- Mouse events on a frame: Mouse left,mouseevents,from Tkinter
- Mouse events on a frame: Mouse,mouseevents,from Tkinter
- Mouse button differentiation: center button clic,,from Tkinter
- Mouse Double click,mousedoubleclick,from Tkinter
- Mouse action: left click,mouseclick,from Tkinter
评论关闭