标签:getc div index .com 文件的 ges ima getcwd image
#当前文件的路径
pwd
=
os.getcwd()
#当前文件的父路径
father_path
=
os.path.abspath(os.path.dirname(pwd)
+
os.path.sep
+
"."
)
#当前文件的前两级目录
grader_father
=
os.path.abspath(os.path.dirname(pwd)
+
os.path.sep
+
".."
)
标签:getc div index .com 文件的 ges ima getcwd image
原文地址:http://www.cnblogs.com/mias/p/7640209.html