Removing the first folder in a path
问题 I have a path which looks like /First/Second/Third/Fourth/Fifth and I would like to remove the First from it, thus obtaining Second/Third/Fourth/Fifth The only idea I could come up with is to use recursively os.path.split but this does not seem optimal. Is there a better solution? 回答1: There really is nothing in the os.path module to do this. Every so often, someone suggests creating a splitall function that returns a list (or iterator) of all of the components, but it never gained enough