os、os.path 模块中关于文件、目录常用的函数使用方法

来源:互联网 发布:淘宝运费设置技巧 编辑:程序博客网 时间:2024/06/16 17:26

记录记录,以后自己需要一个更改一个

要获得上级目录的路径也很简单,print os.path.abspath('..')    and      os.path.split(os.getcwd())[:-1][0]

阅读全文
0 0