How to resolve two directories

How to resolve two directories


import os # from  ww w.ja v a 2s.c o m
print os.path.join("c:\\music\\ap\\", "test.txt")  
print os.path.join("c:\\music\\ap", "test.txt") 
print os.path.expanduser("~")                         
print os.path.join(os.path.expanduser("~"), "Python")   




















Home »
  Python »
    Advanced Features »




Exception Handling
File
Module