There is a string like sdd,L12,W45,H78,7cm,K,D6
It is necessary to break into 12,45,78,7 by separate variables for insertion into the database.
The task is eletnarnoe .. It is very urgent to implement in Python, never worked in Python, thanks
I'm not sure I understood the question correctly, but the split function breaks the string into a sequence of values:
t=s.split(',') And then I would use for and if to check if the text contains a number, and if so, write it to an array.
The solution is really elementary:
Source: https://ru.stackoverflow.com/questions/528973/
All Articles
12,45,78,7But what about6? - gil9red