W
W
Wet_Dumplings2018-10-01 09:19:14
Python
Wet_Dumplings, 2018-10-01 09:19:14

How to split a string from SQL into characters?

Hello!
There is a sign login, password it is
necessary to break the password into separate characters (as an array)
SELECT gives out the password like this: [('123456',)]

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Anton fon Faust, 2018-10-01
@bubandos

select into a variable, and then, in python, you can access the elements of the string by index.
If you need to make a list: list(var_password)

H
holodoz, 2018-10-01
@holodoz

If your answer is returned as a tuple in an array of one element, then list(password[0][0]) - list creates a list from the first element of the tuple in the first element of the array

E
Evgeny Petrov, 2015-05-30
@Angelina_Jo

Well, it's all easier to do .

L
L0k1, 2015-05-30
@L0k1

onChange, but not onClick and there will be no double operation in theory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question