rrid.py 文件源码

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

项目:scibot 作者: SciCrunch 项目源码 文件源码
def bookmarklet_wrapper(request, endpoint):
    """ Return text of the SciBot bookmarklet """
    code = bookmarklet_base % (request.application_url.replace('http:', 'https:'), endpoint)
    bookmarklet = code.replace('"', '"').replace('\n','')
    html = html_base % (bookmarklet, request.host.split('.', 1)[-1], code)
    r = Response(html)
    r.content_type = 'text/html'
    return r
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号