首页 > 技术文章 > python 获取当前路径

ymjyqsx 2019-01-15 17:28 原文

使用os模块:

os.path.realpath(__file__)

 

推荐阅读