Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try to fix version number(like 5.4.0) to chinese error #165

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lvscar
Copy link

@lvscar lvscar commented Oct 21, 2024

The PR try to fix error when we got a sentence have version number(like 5.4.0) in it. eg: "本周,小鹏就将发布天玑 5.4.0 系统。"

for issue: #164

@lvscar
Copy link
Author

lvscar commented Oct 22, 2024

fix result:

 print(f"5: {number_to_chinese('5')}")    
 print(f"1.2: {number_to_chinese('1.2')}")
 print(f"2.3.4: {number_to_chinese('2.3.4')}")    

5: 五
1.2: 一点二
2.3.4: 二点三点四

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant