Skip to content

Commit 362bb82

Browse files
authored
Add files via upload
1 parent 58aeaf2 commit 362bb82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

script/order_bot_program/chinese_num_transform.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,9 @@ def chinese_in_string_transform(inputs: str) -> str:
9797
output = re.sub(cn_pattern,
9898
lambda x: __sub_util(x.group(),"number"), inputs)
9999
return output
100+
101+
if __name__ == '__main__':
102+
# num = '一千七百七十一個蛋糕'
103+
# print(chinese_in_string_transform(num))
104+
nume = '十七億三千萬零八'
105+
print(chinese_to_arabic(nume))

0 commit comments

Comments
 (0)