两个数、三个数比较大小

#coding=utf-8

'''
两个数、三个数比较大小
'''
def max2(x,y):
if x>y:
print ('The max is :'+str(x))
else:
print ('The max is :'+str(y))

def max3(x,y,z):
if x>y:
max2(x,z)
else:
max(y,z)

max3(3,2,5)

posted on 2018-08-22 16:09  DAY&DAY&UP  阅读(137)  评论(0编辑  收藏  举报

导航