python demo1 条件分支

def game() :
    temp =input(' input one num ')
    guess = int(temp)
    if guess == 8:
     print('you are right')
    else :
        if guess > 8:
            print('gt')
        else :
            print('lt')
    print('game over!')

if __name__ == '__main__':
    game()
©️2020 CSDN 皮肤主题: 我行我“速” 设计师:Amelia_0503 返回首页