python获取当前文件的上一级目录

python学习网 2019-12-28 15:38:01

import os
os.path.dirname(os.path.abspath(__file__))

 

阅读(2685) 评论(0)