import os __file__='./test_accpickle.ipynb' --> 指定file位置 os.path.realpath(__file__) --> 路径 os.path.dirname(os.path.realpath(__file__)) --> 文件夹

import os __file__='./test_accpickle.ipynb' --> 指定file位置 os.path.realpath(__file__) --> 路径 os.path.dirname(os.path.realpath(__file__)) --> 文件夹