I have this one2|3|4|3|3|2,|3,|2|3,|4,|2|3|3|2|3|2
I want to merge the data with commas like this2|3|4|3|3|2,3|2|3,4|2|3|3|2|3| 2
Is there any good way?
If there are three or four adjacent, how can I change it? Newbies don’t quite understand! Please answer!
,|
replaced with,
str.replace(',|',',')
Help you implement it with code.