Here's how to NOT get a file name from a path in Python. The string method `split` has a counterpart `rsplit` that starts splitting from the end of the string. This is useful if you only want the final segment(s) of a string.
2 likes 1 replies
?
Here's how to NOT get a file name from a path in Python. The string method `split` has a counterpart `rsplit` that starts splitting from the end of the string. This is useful if you only want the final segment(s) of a string.
2 likes 1 replies