python 获取当前路径

使用os模块:

os.path.realpath(__file__)
原文地址:https://www.cnblogs.com/ymjyqsx/p/10273154.html