
python
jgywoshiyy
这个作者很懒,什么都没留下…
展开
-
wrk随机样本测试
wrk随机样本测试tbl = {}count= 0wrk.method = "POST"wrk.headers["Content-Type"] = "application/x-www-form-urlencoded"init = function(args) for line in io.lines("wrk_wordvec.txt") do tbl[count] = line count= count+1 endendrequ...原创 2022-03-07 11:19:09 · 193 阅读 · 0 评论 -
重定向
一、 使用HttpResponseRedirect ● fuhao The first argument to the constructor is required – the path to redirect to. This can be a fully qualified URL or an absolute path with no domain。”参数可以是绝对路径跟相对路径”转载 2018-01-11 10:38:48 · 330 阅读 · 0 评论 -
计算函数执行时间
# coding = utf-8from functools import wrapsimport timedef func1(func): @wraps(func) def call_func(*args, **kwargs): start2 = time.time() func(*args, **kwargs) end2 =...原创 2018-03-27 15:20:58 · 430 阅读 · 0 评论