<qiyuangong>150_Evaluate_Reverse_Polish_Notation_1.py
def evalRPN( tokens):
    stack = []
    for t in tokens:
        try:
            temp = int(t)
            stack.append(temp)
        except:
            b = stack.pop()
            a = stack.pop()
            if t == "+":
                a += b
            elif t == "-":
                a -= b
            elif t == "*":
                a *= b
            else:
                a = int(a * 1.0 / b)
            stack.append(a)
    return stack[-1]
def sample_funcname ( var_0 ) :
    var_1 = [ ]
    for var_2 in var_0 :
        try :
            var_4 = int ( var_2 )
            var_1.append ( var_4 )
        except :
            var_7 = var_1.pop ( )
            var_8 = var_1.pop ( )
            if var_2 == "+" :
                var_8 += var_7
            elif var_2 == "-" :
                var_8 -= var_7
            elif var_2 == "*" :
                var_8 *= var_7
            else :
                var_8 = int ( var_8 * 1.0 / var_7 )
            var_1.append ( var_8 )
    return var_1 [ - 1 ]
