I would like to know if there is any built in function in python to break the string in to 2 parts, based on the last occurrence of a separator.
for eg:
consider the string "a b c,d,e,f" , after the split over separator ",", i want the output as
"a b c,d,e" and "f".
I know how to manipulate the string to get the desired output, but i want to know if there is any in built function in python.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…