Skip to content

Commit

Permalink
reformat: auto_get_res_new.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyn101 committed Jul 19, 2024
1 parent e3d5cd3 commit 7368ead
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions auto_get_res_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,9 @@ def 获得干员基建描述(self):
干员技能列表.append(干员技能字典.copy())
干员技能列表 = sorted(干员技能列表, key=lambda x: (-x["key"]))
# print(干员技能列表)
with open(r".\ui\src\pages\basement_skill\skill.json", "w", encoding="utf-8") as f:
with open(
r".\ui\src\pages\basement_skill\skill.json", "w", encoding="utf-8"
) as f:
json.dump(干员技能列表, f, ensure_ascii=False, indent=2)

def buff转换(self):
Expand All @@ -599,7 +601,9 @@ def buff转换(self):
dict1["buffer"] = matches
buff_table[item.replace(".", "_")] = dict1

with open(r".\ui\src\pages\basement_skill\buffer.json", "w", encoding="utf-8") as f:
with open(
r".\ui\src\pages\basement_skill\buffer.json", "w", encoding="utf-8"
) as f:
json.dump(buff_table, f, ensure_ascii=False, indent=2)

def 添加基建技能图标(self):
Expand Down

0 comments on commit 7368ead

Please sign in to comment.