第8月第12天 python json.dumps danmu

1.json.dumps

        return JsonResponse({
        'status': WechatMessage.POST_METHOD_REQUIRED[1],
        'status_code': WechatMessage.POST_METHOD_REQUIRED[0]
        })

 

import json
from django.shortcuts import HttpResponse


def JsonResponse(params):
    return HttpResponse(json.dumps(params))

 

 

2.danmu

 

c语言版:https://github.com/fishioon/douyu/

python版: https://github.com/littlecodersh/danmu/

 

 

3.pypi pip

 

https://pypi.python.org/pypi/danmu/1.0.5

http://blog.csdn.net/nirendao/article/details/48664551

 

posted @ 2017-05-12 09:03  lianhuaren  阅读(141)  评论(0编辑  收藏  举报