摘要: 目录结构 __file__ __file__表示了当前文件的path os.path.dirname(path) 去掉文件名,返回目录,若print os.path.dirname(file)所在脚本是以绝对路径运行的,则会输出该脚本所在的绝对路径,若以相对路径运行,输出空目录 os.path.ab 阅读全文
posted @ 2018-08-19 13:01 raindi 阅读(175) 评论(0) 推荐(0)