This commit is contained in:
Li Shuzhen
2025-04-29 09:11:17 +08:00
committed by GitHub
parent b0204ad9b7
commit f384034854
3 changed files with 19 additions and 3 deletions

View File

@ -38,7 +38,7 @@ def load_json_file(file_path: str) -> Optional[dict]:
def save_json_file(file_path: str, data: dict) -> None:
with open(file_path, 'w', encoding='utf-8') as file:
json.dump(data, file, ensure_ascii=False, indent=4)
json.dump(data, file, ensure_ascii=False, indent=2)
def load_yaml_file(file_path: str) -> Optional[dict]: