comefrom: <qiyuangong>013_Roman_to_Integer_2.py
code: def romanToInt( s):
      roman = {'I': 1, 'V': 5, 'X': 10,
               'L': 50, 'C': 100, 'D': 500, 'M': 1000}
      prev, total = 0, 0
      for c in s:
          curr = roman[c]
          total += curr
          if curr > prev:
              total -= 2 * prev
          prev = curr
      return total
masked: def sample_funcname ( var_0 ) :
      var_15 = { 'I' : 1 , 'V' : 5 , 'X' : 10 , 'L' : 50 , 'C' : 100 , 'D' : 500 , 'M' : 1000 }
      var_17 , var_18 = 0 , 0
      for var_19 in var_0 :
          var_20 = var_15 [ var_19 ]
          var_18 += var_20
          if var_20 > var_17 :
              var_18 -= 2 * var_17
          var_17 = var_20
      return var_18
  