>>> import os >>> os.path.abspath("mydir/myfile.txt") 'C:/example/cwd/mydir/myfile.txt'. Also works if it is already an absolute path:
確定! 回上一頁