occurrence

Searching…

www.bing.com

Python 3: get 2nd to last index of occurrence in string

2012年12月28日 · 17 I have a string abcdabababcebc How do I get the index of the second-to-last occurrence of b? I searched and found rfind () but that doesn't work since it's the last index and not …