SRC_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "src")
# os.path.abspath(__file__) get the file of nncp.py
# os.path.dirname(path) remove the filename ,return the file of last dir
# os.path.join(A,”B“)拼接AB
python——获取发当前文件的路径 -os.path.dirname() os.path.abspath()
最新推荐文章于 2023-04-25 14:55:33 发布