newsgenerator.py 文件源码

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

项目:WorldsAtWar 作者: heidi666 项目源码 文件源码
def dangerasteroid(): #type 5
    imgloc = static('actionnews/dangerasteroid.gif')
    data = """<center> \
            Your fleet intelligence detects an asteroid on a collision course <br> \
            directly for the planet! What should be done? \
            <p class="halfline">&nbsp;</p> \
            <img src="%s" alt="dangerasteroid"> \
            <p class="halfline">&nbsp;</p> \
            <table> \
            <tr> \
            <td class='center'><input type='submit' name='dasteroiddeflect' value='Deflect' class='button'  \
                    title='Get your support ships to deflect it harmlessly into space, at the cost of 50 warpfuel.'/></td>  \
            <td class='center'><input type='submit' name='dasteroidsubcontract' value='Subcontract' class='button'  \
                    title='Pay a civilian company to deflect it for you, at the cost of 500 GEU.'/></td>  \
            <td class='center'><input type='submit' name='dasteroidredirect' value='Redirect' class='button'  \
                    title='Redirect it onto a rebel area on your planet at the cost of 20 warpfuel. \
                    Rebels will be heavily reduced but you will lose perception.'/></td>  \
            </tr> \
            </table> \
            </center>""" % imgloc
    return data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号