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/
时间: 2024-10-11 16:49:42