获取脚本所在目录:
os.path.split( os.path.realpath( sys.argv[0] ) )[0]
获取程序运行目录:
os.getcwd()

相关文章:

  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
猜你喜欢
  • 2021-09-27
  • 2021-12-28
  • 2021-10-13
  • 2021-07-06
  • 2022-01-19
相关资源
相似解决方案