comefrom: <qiyuangong>405_Convert_a_Number_to_Hexadecimal_1.py
code: def toHex( num):
      if num == 0:
          return '0'
      mp = '0123456789abcdef'
      ans = ''
      for _ in range(8):
          n = num & 15
          c = mp[n]
          ans = c + ans
          num = num >> 4
      return ans.lstrip('0')
masked: def sample_funcname ( var_0 ) :
      if var_0 == 0 :
          return '0'
      var_4 = '0123456789abcdef'
      var_6 = ''
      for var_9 in range ( 8 ) :
          var_11 = var_0 & 15
          var_12 = var_4 [ var_11 ]
          var_6 = var_12 + var_6
          var_0 = var_0 >> 4
      return var_6.lstrip ( '0' )
  