在Python轮盘游戏中输入麻烦

时间:2017-10-04 01:37:39

标签: python

如何提示用户输入136之间的数字以及该程序如何通过elif声明?

elif user_bet == (1) (2) :
    print('You are betting on %s \n Good Luck!' %(user_bet))
    money = int(input("What is your bet:"))
    number = random.randint(1,36)
    if number == user_bet:
        user_flow = 36 * money + user_flow
        print("Excellent Job! You now have %d" %(user_flow))
    else:
        user_flow = user_flow - money 
        print('Bad news, you now have %d' %(user_flow))

0 个答案:

没有答案