Skip to content

Commit

Permalink
Merge pull request #54 from D3adEr1c/main
Browse files Browse the repository at this point in the history
fix: 干员图片文件重名问题
  • Loading branch information
HibiKier authored May 24, 2022
2 parents f857060 + e378995 commit 4cba959
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion draw_card/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@


def cn2py(word) -> str:
"""保存声调,防止出现类似方舟干员红与吽拼音相同声调不同导致红照片无法保存的问题"""
temp = ""
for i in pypinyin.pinyin(word, style=pypinyin.NORMAL):
for i in pypinyin.pinyin(word, style=pypinyin.pypinyin.TONE3):
temp += "".join(i)
return temp

Expand Down

0 comments on commit 4cba959

Please sign in to comment.