From eccb4a95b76c01bf801365114e38fdf8f9736072 Mon Sep 17 00:00:00 2001 From: Ken Tang <34528743+kentang2017@users.noreply.github.com> Date: Sat, 24 Aug 2024 14:12:42 +0800 Subject: [PATCH] Update ichingshifa.py --- ichingshifa/ichingshifa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ichingshifa/ichingshifa.py b/ichingshifa/ichingshifa.py index 30b8611..5ddce6c 100644 --- a/ichingshifa/ichingshifa.py +++ b/ichingshifa/ichingshifa.py @@ -771,7 +771,7 @@ def display_pan_m(self, year, month, day, hour, minute, mgua): o = "【斷主客勝負】\n1.客隊下卦為【{}】,主隊上卦為【{}】,主客關係為【{}】。內卦為我寨,處{},外卦為彼營,處{}。{}\n2.主隊世爻,{}世爻為【{}】{}{}{},{};{}客隊應爻為【{}】{}{}{},{}主客關係為【{}】,{}。 \n3.{}變為【{}】,主客關係為【{}】。 \n4.動爻【{}】,主隊世爻【{}】,關係為【{}】。 \n5.動爻【{}】,客隊應爻【{}】,關係為【{}】。\n6.{}。\n7.{} \n8.日干下主隊世爻臨【{}】,客隊應爻臨【{}】,時干下{}{}".format(downgua,upgua, down_vs_up,downgua1,upgua1,father_luck,shi_yy,shi[0:4],sk_dist,sguan,s_dist2,s_dist3,shi_monster,ying[0:4],yk_dist,yguan,y_dist2,ying_monster,shi_vs_ying,shi_vs_ying2,dong2, bian, vs, dong[:-1],shi[0:4], vs2, dong[:-1],ying[0:4], vs3, dd_dist,dong_dist, gettwelve.get(shi[2]), gettwelve.get(ying[2]), s_vs_y_dist, gua_no_yao) if flyfu_dist != "": o = "【斷主客勝負】\n1.客隊下卦為【{}】,主隊上卦為【{}】,主客關係為【{}】。內卦為我寨,處{},外卦為彼營,處{}。{}\n2.主隊世爻,{}世爻為【{}】{}{}{},{};{}客隊應爻為【{}】{}{}{},{}主客關係為【{}】,{}。 \n3.{}變為【{}】,主客關係為【{}】。 \n4.動爻【{}】,主隊世爻【{}】,關係為【{}】。 \n5.動爻【{}】,客隊應爻【{}】,關係為【{}】。\n6.{}{}{} \n7.{} \n8.日干下主隊世爻臨【{}】,客隊應爻臨【{}】,時干下{}{}".format(downgua,upgua, down_vs_up,downgua1,upgua1,father_luck,shi_yy,shi[0:4],sk_dist,sguan,s_dist2,s_dist3,shi_monster,ying[0:4],yk_dist,yguan,y_dist2,ying_monster,shi_vs_ying,shi_vs_ying2,dong2, bian, vs, dong[:-1],shi[0:4], vs2, dong[:-1],ying[0:4], vs3,dd_dist,flyfu_dist,father_lay_dist, dong_dist,gettwelve.get(shi[2]), gettwelve.get(ying[2]), s_vs_y_dist, gua_no_yao) - p = "\n【先天周易策軌】\n" + p = "\n\n【先天周易策軌】\n" q = " ".join(self.innate_cegui(year, month, day, hour, minute)) return a+b+c0+c+c1+c2+c3+c4+c5+c5_1+d+e+f+g+h+i+j+k+l+m+n+o+p+q @@ -995,7 +995,7 @@ def display_pan(self, year, month, day, hour, minute): o = "【斷主客勝負】\n1.客隊下卦為【{}】,主隊上卦為【{}】,主客關係為【{}】。內卦為我寨,處{},外卦為彼營,處{}。{}\n2.主隊世爻,{}世爻為【{}】{}{}{},{};{}客隊應爻為【{}】{}{}{},{}主客關係為【{}】,{}。 \n3.{}變為【{}】,主客關係為【{}】。 \n4.動爻【{}】,主隊世爻【{}】,關係為【{}】。 \n5.動爻【{}】,客隊應爻【{}】,關係為【{}】。\n6.{}。\n7.{} \n8.日干下主隊世爻臨【{}】,客隊應爻臨【{}】,時干下{}{}".format(downgua,upgua, down_vs_up,downgua1,upgua1,father_luck,shi_yy,shi[0:4],sk_dist,sguan,s_dist2,s_dist3,shi_monster,ying[0:4],yk_dist,yguan,y_dist2,ying_monster,shi_vs_ying,shi_vs_ying2,dong2, bian, vs, dong[:-1],shi[0:4], vs2, dong[:-1],ying[0:4], vs3, dd_dist,dong_dist, gettwelve.get(shi[2]), gettwelve.get(ying[2]), s_vs_y_dist, gua_no_yao) if flyfu_dist != "": o = "【斷主客勝負】\n1.客隊下卦為【{}】,主隊上卦為【{}】,主客關係為【{}】。內卦為我寨,處{},外卦為彼營,處{}。{}\n2.主隊世爻,{}世爻為【{}】{}{}{},{};{}客隊應爻為【{}】{}{}{},{}主客關係為【{}】,{}。 \n3.{}變為【{}】,主客關係為【{}】。 \n4.動爻【{}】,主隊世爻【{}】,關係為【{}】。 \n5.動爻【{}】,客隊應爻【{}】,關係為【{}】。\n6.{}{}{} \n7.{} \n8.日干下主隊世爻臨【{}】,客隊應爻臨【{}】,時干下{}{}".format(downgua,upgua, down_vs_up,downgua1,upgua1,father_luck,shi_yy,shi[0:4],sk_dist,sguan,s_dist2,s_dist3,shi_monster,ying[0:4],yk_dist,yguan,y_dist2,ying_monster,shi_vs_ying,shi_vs_ying2,dong2, bian, vs, dong[:-1],shi[0:4], vs2, dong[:-1],ying[0:4], vs3,dd_dist,flyfu_dist,father_lay_dist, dong_dist,gettwelve.get(shi[2]), gettwelve.get(ying[2]), s_vs_y_dist, gua_no_yao) - p = "\n【先天周易策軌】\n" + p = "\n\n【先天周易策軌】\n" q = " ".join(self.innate_cegui(year, month, day, hour, minute)) return a+b+c0+c+c1+c2+c3+c4+c5+c5_1+d+e+f+g+h+i+j+k+l+m+n+o+p+q #qin_elements