python demo1 條件分支

威尼斯的星期天發表於2020-10-26
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()

相關文章