comefrom: <qiyuangong>205_Isomorphic_Strings_2.py
code: def isIsomorphic( s, t):
      if len(s) != len(t):
          return False
      ls = len(s)
      mapStoT = [0] * 127
      mapTtoS = [0] * 127
      for i in range(ls):
          s_num, t_num = ord(s[i]), ord(t[i])
          if mapStoT[s_num] == 0 and mapTtoS[t_num] == 0:
              mapStoT[s_num] = t_num
              mapTtoS[t_num] = s_num
          elif mapTtoS[t_num] != s_num or mapStoT[s_num] != t_num:
              return False
      return True
masked: def sample_funcname ( var_0 , var_1 ) :
      if len ( var_0 ) != len ( var_1 ) :
          return False
      var_2 = len ( var_0 )
      var_3 = [ 0 ] * 127
      var_4 = [ 0 ] * 127
      for var_5 in range ( var_2 ) :
          var_6 , var_7 = ord ( var_0 [ var_5 ] ) , ord ( var_1 [ var_5 ] )
          if var_3 [ var_6 ] == 0 and var_4 [ var_7 ] == 0 :
              var_3 [ var_6 ] = var_7
              var_4 [ var_7 ] = var_6
          elif var_4 [ var_7 ] != var_6 or var_3 [ var_6 ] != var_7 :
              return False
      return True
  