python 之 os.path学习笔记

os.path学习笔记 1.os.path.dirname(os.path.abspath(__file__)) 用法 os.path.abspath(__file__) 返回脚本的绝对路径 os.path.dirname(__file__)返回脚本的路径html 一般结合起来使用,会返回当前脚本的目录python 例如:web import os fileDir = os.path.abspat
相关文章
相关标签/搜索