body.py 文件源码

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

项目:botodesu 作者: futursolo 项目源码 文件源码
def generate(**kwargs: Any) -> Tuple[
        Dict[str, str], Union[AnyStr, aiohttp.FormData]]:
    headers = {}  # type: Dict[str, str]
    try:
        data = json.dumps(kwargs)
        headers["Content-Type"] = "application/json"

    except:  # Fallback to Form Data.
        data = _generate_form_data(**kwargs)

    return headers, data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号