I would do import os path = os.path.normpath(path) path.split(os.sep). First normalize the path string into a proper string for the OS. Then os.sep must be ...
確定! 回上一頁