예외처리하기#

샘플소스

def f(a,b):
    try:
        if a and b:
            return 'true';
        else:
            raise IOError;
    except:
        return '123456789';

print f(1,0);

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 04-Oct-2008 20:00 by DongGukLee