comefrom: <qiyuangong>166_Fraction_to_Recurring_Decimal_1.py
code: def fractionToDecimal( numerator, denominator):
      if numerator == 0:
          return '0'
      fraction = ''
      if (numerator < 0) ^ (denominator < 0):
          fraction += '-'
      dividend = abs(numerator)
      divisor = abs(denominator)
      fraction += str(dividend / divisor)
      remainder = dividend % divisor
      if remainder == 0:
          return fraction
      fraction += '.'
      dic = {}
      while remainder != 0:
          if remainder in dic:
              fraction = fraction[:dic[remainder]] + '(' + fraction[dic[remainder]:] + ')'
              break
          dic[remainder] = len(fraction)
          remainder *= 10
          fraction += str(remainder / divisor)
          remainder %= divisor
      return fraction
masked: def sample_funcname ( var_0 , var_1 ) :
      if var_0 == 0 :
          return '0'
      var_5 = ''
      if ( var_0 < 0 ) ^ ( var_1 < 0 ) :
          var_5 += '-'
      var_8 = abs ( var_0 )
      var_9 = abs ( var_1 )
      var_5 += str ( var_8 / var_9 )
      var_11 = var_8 % var_9
      if var_11 == 0 :
          return var_5
      var_5 += '.'
      var_13 = { }
      while var_11 != 0 :
          if var_11 in var_13 :
              var_5 = var_5 [ : var_13 [ var_11 ] ] + '(' + var_5 [ var_13 [ var_11 ] : ] + ')'
              break
          var_13 [ var_11 ] = len ( var_5 )
          var_11 *= 10
          var_5 += str ( var_11 / var_9 )
          var_11 %= var_9
      return var_5
  