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

值符中五转乾二天盘出错 #27

Open
dovsay opened this issue Mar 23, 2022 · 2 comments
Open

值符中五转乾二天盘出错 #27

dovsay opened this issue Mar 23, 2022 · 2 comments

Comments

@dovsay
Copy link

dovsay commented Mar 23, 2022

kinqimen.Qimen(2016,12,2,17).pan()

'天盤': ({'艮': '戊', '離': '乙', '坎': '丙', '坤': '丁', '震': '癸', '巽': '壬', '中': '辛', '乾': '庚', '兌': '己'}, [{'坤': '癸'}]),
微信图片_20220323163103

正确的排盘结果如下:

微信图片编辑_20220323151618

@dovsay
Copy link
Author

dovsay commented Mar 23, 2022

问题出在 pan_sky 函数,行104,gong_reorder = new_list(rotate, fu_head_location)
rotate: ['乾', '兌', '坤', '離', '巽', '震', '艮', '坎']
fu_head_location: 中
rotate不含‘中’,
gong_reorder已经行101重新排序了,注释掉行104
直接 return dict(zip(gong_reorder, gan_reorder)) 是正常的

@kentang2017
Copy link
Owner

謝謝報錯指正,稍為修改了代碼,請再看看。

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

No branches or pull requests

2 participants