Skip to content

Commit

Permalink
Add minggong
Browse files Browse the repository at this point in the history
  • Loading branch information
china-testing committed Feb 20, 2024
1 parent 3b42c41 commit 1bfd237
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bazi.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,9 @@ def gan_ke(gan1, gan2):
yinyangs(zhis)
shen_zhus = list(zip(gan_shens, zhi_shens))

minggong = Zhi[::-1][(Zhi.index(zhis[1]) + Zhi.index(zhis[3]) -6 )%12 ]
print(minggong, minggongs[minggong])

# 地网
if '辰' in zhis and '巳' in zhis:
print("地网:地支辰巳。天罗:戌亥。天罗地网全凶。")
Expand Down Expand Up @@ -832,6 +835,8 @@ def gan_ke(gan1, gan2):
if piancai_lu == zhis[2]:
print("时支日库,坐偏财:吉祥近贵,但亲属淡薄。 母法总则P59-6 辛未 辛卯 丁酉 庚戌")




# 时坐禄
if me_lu == zhis[3]:
Expand Down Expand Up @@ -1300,7 +1305,7 @@ def gan_ke(gan1, gan2):
if zhi_xing[3] or zhi_6chong[3]:
print("时支正财禄有冲刑:得女伴且文学清贵。 母法总则P60-11 丁丑 辛亥 己巳 乙亥")
if any(zhi_xing[:3]) or any(zhi_6chong[:3]):
print("时支正财禄,它支有冲刑:刑妻、孤高、艺术、近贵人。 母法总则P60-19 乙未 己丑 庚寅 己卯")
print("时支正财禄,它支有冲刑:刑妻、孤高、艺术、近贵人。 母法00总则P60-19 乙未 己丑 庚寅 己卯")
if gan_shens.count('财') >1 :
print("时支正财禄,天干财星多:孤雅、九流、表面风光。 母法总则P60-20 乙酉 乙酉 庚辰 己卯")

Expand Down
15 changes: 15 additions & 0 deletions datas.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,21 @@
('壬', '戌'): '金', ('癸', '亥'): '金',
}

minggongs = {
"子": "天贵星、志气不凡、富裕清吉。",
"丑": "天厄星、先难后吉、离祖劳心、晚年吉。",
"寅": "天权星、聪明大器、中年有权柄。",
"卯": "天赦星、慷慨疏财、得权时须谦逊。",
"辰": "天如星、事多翻覆、机谋多能。",
"巳": "天文星、文章振发、女命有好夫。",
"午": "天福星、荣华吉命。",
"未": "天驿星、一生劳碌、离祖始安。",
"申": "天孤星、不宜早婚、女命妨夫。",
"酉": "天秘星、性情刚直、时有是非。",
"戌": "天艺星、心性平和、艺道有名。",
"亥": "天寿星、心慈明悟、克己助人。",

}

#ges = {
#('庚', '子'):'飞天禄马', ('壬', '子'):'飞天禄马',
Expand Down

0 comments on commit 1bfd237

Please sign in to comment.