newsgenerator.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:WorldsAtWar 作者: heidi666 项目源码 文件源码
def newbevent(name): #type 2
    imgloc = static('actionnews/newworld.gif')
    data = """<center> \
            Welcome to the Galaxy, %s! Choose the path your world has taken carefully. \
            <p class="halfline">&nbsp;</p> \
            <img src="%s" alt="newworld"> \
            <p class="halfline">&nbsp;</p> \
            <table> \
            <tr> \
            <td class='center'><input type='submit' name='noobmoney' value='Economy' class='button'  \
                    title='You have 600 GEU for you to spend however you see fit.'/></td>  \
            <td class='center'><input type='submit' name='noobqol' value='Welfare' class='button'  \
                    title='Your people love you and have higher quality of life.'/></td>  \
            <td class='center'><input type='submit' name='noobsecurity' value='Security' class='button'  \
                    title='Your rule is extremely solid.'/></td>  \
            <td class='center'><input type='submit' name='noobmilitary' value='Military' class='button'  \
                    title='You have a strong military.'/></td>  \
            </tr> \
            </table> \
            </center>""" % (name, imgloc)
    return data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号