(string_)
return array
Convierte un sting a un array de int
Convierte un sting a un array de int
Convierte un sting a un array de int
def string_to_array(string_):
    """Convierte un sting a un array de int"""
    try:
        print([ord(char) for char in string_])
        array = [ord(char) for char in string_]
    except TypeError:
        print("error", string_)
        array = string_

    return array
def string_to_array ( string_ ) : try : print ( [ ord ( char ) for char in string_ ] ) array = [ ord ( char ) for char in string_ ] except TypeError : print ( "error" , string_ ) array = string_ return array