`

python -- docstring

阅读更多

def PrintMax(x, y):
    '''Prints the maximum of two numbers.
The two balues must bu integers.''';

    x = int(x);
    y = int(y);

    if x > y :
        print x, 'is muaximum';
    else:
        print y, 'is maximum';

PrintMax(1, 3);
print PrintMax.__doc__
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics