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

to py3, add some type hints #2

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

Conversation

asukaminato0721
Copy link

Some problems:

1

It will randomly produce 1~3 ci, I don't know whether this is normal.

Produce three:

朝中措
霜刀剪烛夜萧疏,开谢故都如。兰棹百年九月,华阳天上传书。
应知心里,湖南倦倚,银管吹渔。怪得海山留与,白云愁满三闾。


瑞鹤仙
此心如海上,长乐事、最是花无一向。终朝酒犹想,远山增明日,光中风荡。名高气象。信美人、之十古往。又翻新绿水,开幕护霜,点鬓萧爽。
似梦随君著意,已隔三年,九秋千丈。当时共仰。谁听雨,泪珠网。小妆窥镜里,分春春在,黄堂初到画桨。露重帘绣幌。深处寄言拄杖。


踏莎行
付与天为,君心一念,几人著甚来不厌。上西真是百杯中,高亭午夜凉波滟。
璧月如年,狂风乍敛,新正满屋诛茅店。后行吹作地残春,都齐开幕深红艳。

produce one

柳梢青
已是轻盈,自宽带笑,两处闻名。金母屏风,晚来孤枕,听雨笼晴。
尚留君说相并,在此夜、沈烟半生。若问谁知,老人微露,滴尽寒英。


满江红



贺新郎



2

Code seems to use some None but not handle them. (But it runs, so I don't fix them).
image

3

the _cc var, if set = 3

Traceback (most recent call last):
  File "/home/asukaminato/ci-ren/main.py", line 7, in <module>
    ci.makeyun()
  File "/home/asukaminato/ci-ren/ci.py", line 53, in makeyun
    yun[lines[i][:_cc]].append(nt)
KeyError: '平声一'

After some debug, I set it = 1, and it works well now.

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