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

请问鹤神的计算是否有错误 #16

Open
ching2018 opened this issue Nov 30, 2021 · 1 comment
Open

请问鹤神的计算是否有错误 #16

ching2018 opened this issue Nov 30, 2021 · 1 comment

Comments

@ching2018
Copy link

    # 鶴神
    def crane_god(self):
        newjz = new_list(jiazi(), "庚申")
        crane_nums = [6, 5, 6, 5, 6, 5, 16, 6, 5]
        crane_list = list("巽離坤兌乾坎天艮震")
        newc_list = []
        for i in range(0, 8):
            newc = [crane_list[i][:5]]*crane_nums[i]
            print(crane_list[i][:5], crane_nums[i])
            newc_list.extend(newc)
        
        return dict(zip(newjz, newc_list))

for i in range(0, 8):是否应该是for i in range(0, 9):
不然这里少了一个,比如这个少了
image

@kentang2017
Copy link
Owner

列表內有九個元素,用0至8去排,沒有錯誤

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