😥测试action是否正常运行

This commit is contained in:
2024-07-02 10:30:10 +08:00
commit a6dc969716
9 changed files with 2445 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import yaml
def load_config(config_file):
"""
加载配置文件。
参数:
config_file (str): 配置文件的路径。
返回:
dict: 加载的配置数据。
"""
with open(config_file, 'r', encoding='utf-8') as file:
return yaml.safe_load(file)