cpp_symbol_spider.py 文件源码

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

项目:docflow 作者: strinking 项目源码 文件源码
def get_return_values(resp: str) -> Optional[str]:
    """
    Attempts to extract the return values
    from the response body. If this is longer
    than around 250 characters, chances are
    high that it's garbage, meaning that
    no return values were found.
    """

    start = resp.find(RETURN_VALUE_HEADER)
    if start is None:
        return None
    start += len(RETURN_VALUE_HEADER)
    end = resp.find(b"<h3>", start)
    ret_vals = unescape(remove_tags(resp[start:end]))
    return ret_vals if len(ret_vals) < 250 else None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号