예제 #1
0
    def yungua(year):
        try:
            gua,gua_remain = HUI_YUAN_YUN_SHI.gua(year)
            return Gua.biangua(gua,gua_remain)

        except Exception,e:
            traceback.print_exc()
            print e
예제 #2
0
    def shigua(year):
        try:
            gua = HUI_YUAN_YUN_SHI.yungua(year)
            shi = HUI_YUAN_YUN_SHI.Shi(year)[0]
            return Gua.biangua(gua,(shi+1)/2)

        except Exception,e:
            traceback.print_exc()
            print e