zcold / pycnnum

MIT License
19 stars 7 forks source link

`num2cn(1) ` raises `IndexError` #7

Closed lgc2333 closed 8 months ago

lgc2333 commented 1 year ago
>>> num2cn(1) 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Coding\python\nb2-workspace\.venv\lib\site-packages\pycnnum\pycnnum.py", line 722, in num2cn
    if (getattr(result_symbols[0], "int_value", None) == 1) and (getattr(result_symbols[1], "power", None) == 1):
IndexError: list index out of range
zcold commented 8 months ago

不好意思现在才回你消息. 我打算过节期间好好整整这个包.

zcold commented 4 months ago

Fixed in the coming release