python获取当前文件路径以及父文件路径的方法 #当前文件的路径pwd=os.getcwd()#当前文件的父路径father_path=os.path.abspath(os.path.dirname(pwd)+os.path.s 父文件