01Design and Analysis Algorithm Using Python-程振波

1.(p14)比较两个数的大小

a = int(input('num:'))
b = int(input('num:'))
def getMax(a,b):
    if a>b :
        print('The bigger number is a:')
    else:
        print('The bigger number is b:')
getMax(a,b)
Compare

2.

 

posted @ 2019-04-27 11:37  ChengXiaoFeng  阅读(160)  评论(0编辑  收藏  举报