Commit ·
2e81bd8
1
Parent(s): 810347e
Update src/get_api_key.py
Browse files12345678import jsonimport os# 读取配置文件with open("config.json", "r") as config_file:config = json.load(config_file)# 设置环境变量1234567891011import jsonimport os# 构建config.json文件的路径config_file_path = os.path.join("config", "config.json")# 读取配置文件with open(config_file_path, "r") as config_file:config = json.load(config_file)# 设置环境变量
src/get_api_key.py+4-1