os.path

    46गर्मी

    5उत्तर

    मैं >>> os.path.join("c:/","home","foo","bar","some.txt") 'c:/home\\foo\\bar\\some.txt' लेकिन, क्या कर सकते हैं जब मैं >>> s = "c:/,home,foo,bar,some.txt".split(",") >>> os.path.join(s) ['c:/', '