Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Dump the flying stars

        def dump_stars( dic ):
    '''
    Dump the flying stars
    '''
    m = dic["mountain_stars"]
    w = dic["water_stars"]
    b = dic["basis_stars"]
    text =  "+-----+-----+-----+\n"
    text += "| %i %i | %i %i | %i %i |\n" % (m[0],w[0],m[1],w[1],m[2],w[2])
    text += "|  %i  |  %i  |  %i  |\n"    % (b[0],b[1],b[2])
    text += "+-----+-----+-----+\n"
    text += "| %i %i | %i %i | %i %i |\n" % (m[3],w[3],m[4],w[4],m[5],w[5])
    text += "|  %i  |  %i  |  %i  |\n"    % (b[3],b[4],b[5])
    text += "+-----+-----+-----+\n"
    text += "| %i %i | %i %i | %i %i |\n" % (m[6],w[6],m[7],w[7],m[8],w[8])
    text += "|  %i  |  %i  |  %i  |\n"    % (b[6],b[7],b[8])
    text += "+-----+-----+-----+\n"
    return text
        


src/f/e/fengshui-0.0.3/fengshui.py   fengshui(Download)
            fstars = fengshui_utils.flying_stars(year, facing)
 
            text = fengshui_utils.dump_stars(fstars)
 
            text += "\n%s%s" % (fstars['direction'],fstars['sector'])