newsgenerator.py 文件源码

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

项目:WorldsAtWar 作者: heidi666 项目源码 文件源码
def asteroidevent(): #type 4
    imgloc = static('actionnews/asteroidmine.gif')
    data = """<center> \
            You track an asteroid entering your system to find it is saturated with resources. <br> \
            However, due to its small size you may only build one mine on it. What do you choose? \
            <p class="halfline">&nbsp;</p> \
            <img src="%s" alt="asteroidmine"> \
            <p class="halfline">&nbsp;</p> \
            <table> \
            <tr> \
            <td class='center'><input type='submit' name='asteroidduranium' value='Duranium' class='button'  \
                    title='You will gain one duranium mine.'/></td>  \
            <td class='center'><input type='submit' name='asteroidtritanium' value='Tritanium' class='button'  \
                    title='You will gain one tritanium mine.'/></td>  \
            <td class='center'><input type='submit' name='asteroidadamantium' value='Adamantium' class='button'  \
                    title='You will gain one adamantium mine.'/></td>  \
            </tr> \
            </table> \
            </center>""" % imgloc
    return data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号