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-12-16 11:36:19