摘要: from rest_framework.throttling import SimpleRateThrottle import time VISIT_RECORD = {} class MyThrottle(object): """ 一分钟允许访问5次 """ def __init__(self): self.history = [] ... 阅读全文
posted @ 2019-12-28 21:59 刀锋意志1 阅读(240) 评论(0) 推荐(0) 编辑