學習筆記(06):2019Python全套視頻教程-多重判斷if..elif

立即學習:https://edu.csdn.net/course/play/26099/322918?utm_source=blogtoedu

多重判斷:

if  elif

 

choise = int(input('你好乾啥?1辦卡,2存錢,3取錢,4修改密碼,5轉賬,6解鎖,7退出,請輸入:'))
if choise == 1:
    print('對不起,沒卡了')
elif choise == 2:
    print('大佬,歡迎')
elif choise == 3:
    print(input('取多少?:'))
elif choise == 4:
    print('系統還行')
elif choise == 5:
    print('系統有問題')
elif choise == 6:
    print('請去總行')
elif choise == 7:
    print('古您的白!')
else:
    print('請說普通話')
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章