python 在工程中处理相对路径的思考

首先就是 工程中的目录非常多.不能使用绝对路径. 只能使用相对路径.

我工程的目录:

root_dir = os.path.dirname(os.path.abspath('.')) ## 获取相对目录
  
  fundpool_path = root_dir + '/stock/st_pool/get_fund_data/基金池.csv'
这是组合成的相对路径.
原文地址:https://www.cnblogs.com/chaoren399/p/11224934.html