python获取当前执行文件目录

current_path = os.path.dirname(os.path.abspath(__file__))

这样就能够在其余其余模块调用的时候不会出现找不到文件的状况.spa

相关文章
相关标签/搜索