python 获取自身所在目录

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

原文地址:https://www.cnblogs.com/hei-hei-hei/p/14000244.html