#coding=utf-8
import os,sys
sys.path.append('test')       # 下级目录(text)
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0,parentdir)  # 返回父目录

 

相关文章:

  • 2021-10-29
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2021-07-11
  • 2021-12-23
  • 2022-01-07
  • 2022-01-07
相关资源
相似解决方案