python学习笔记之016.py

来源:互联网 发布:刻字机端口设置 编辑:程序博客网 时间:2024/06/10 01:06
#!/usr/bin/env python
# coding=utf-8
# Created Time:    2017-08-09 16:17:13
# Modified Time:   2017-08-09 16:31:31


def printMax(x,y):
    '''Prints the maximum of two numbers.


    The two values must be integers.'''


    x = int(x) # convert to integers,if possible
    y = int(y)


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


printMax(3,5)
print printMax.__doc__
原创粉丝点击