matchers.py 文件源码

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

项目:maas 作者: maas 项目源码 文件源码
def describe_http_status(code):
    """Return a string describing the given HTTP status code."""
    try:
        code = HTTPStatus(code)
    except ValueError:
        return "HTTP {code}".format(code=code)
    else:
        return "HTTP {code.value:d} {code.name}".format(code=code)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号