(self, short_str)
return _id
:param short_str:
        :return:
def decode(self, short_str):
        """

        :param short_str:
        :return:
        """
        # slow
        val_hash = []
        for shrt in short_str:
            val_hash.append(self.base.index(shrt))
        val_hash = list(reversed(val_hash))
        _id = 0
        for idx, val in enumerate(val_hash):
            _id += (val * (_BASE ** idx))
        return _id
def decode ( self , short_str ) : # slow val_hash = [ ] for shrt in short_str : val_hash . append ( self . base . index ( shrt ) ) val_hash = list ( reversed ( val_hash ) ) _id = 0 for idx , val in enumerate ( val_hash ) : _id += ( val * ( _BASE ** idx ) ) return _id