Python >>> 获取当前文件路径

os.path.dirname(__file__)
发布了297 篇原创文章 · 获赞 85 · 访问量 11万+

猜你喜欢

转载自blog.csdn.net/weixin_40973138/article/details/104197070