Python获取路径与访问文件

1、获取路径和所在目录python 目录结构: . └── ES ├── rest │ └──test_direction.py └── data │ └── abc.txt └── a.txtweb test_direction.py:svg # -*- coding: utf-8 -*- import os print("获取当前文件的绝对路径:") print(os.path.abspath
相关文章
相关标签/搜索