about one function that splits a string with several chars in python -


This is a function that I have found on the internet, but I'm not sure that the line s, res = res , [] Meaning, can anyone explain this to me? Thanks a lot! S: res + = seq .split (sep) in SEC for def my_split (s, seps): res = [s] sps in SSP: s, res = res, [] Returns

  s, res = res, []  < / Pre> 

tool

  s = res res = []  

Replacement of variables in a row.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -