摘要:
一、在manage.py 同级目录下创建一个py文件用于启动django项目的,比如 run_django.py。HJ是项目名称,替换自己的项目名称 import os import sys from django.core.management import execute_from_comman 阅读全文
摘要:
不要假装努力,结果并不会陪你演戏。只有全力以赴的努力,才可能换来展翅高飞的自己,否则,现实必定给你一记重击。 阅读全文
摘要:
# *_*coding:utf-8 *_* # @Author : zyb import queue # q = queue.SimpleQueue() #不限制大小,仅仅支持添加数据和取数据,先进先出。 q = queue.Queue() # 可以设置大小用maxsize参数。先进先出。如管道。添 阅读全文
摘要:
# *_*coding:utf-8 *_* # @Author : zyb import queue q = queue.Queue() for i in range(100): q.put(i) from locust import FastHttpUser, task, between, Seq 阅读全文
摘要:
# *_*coding:utf-8 *_* # @Author : zyb from locust import HttpUser, TaskSet, task, constant,FastHttpUser from locust import LoadTestShape class UserTas 阅读全文
摘要:
from locust.runners import (MasterRunner, WorkerRunner, STATE_STOPPING, STATE_STOPPED, STATE_CLEANUP, LocalRunner) from locust import HttpUser, TaskSe 阅读全文
摘要:
# *_*coding:utf-8 *_* # @Author : zyb # HttpUser :保持会话。FastHttpUser:高性能 from locust import TaskSet, task, HttpUser,FastHttpUser, between, constant_thr 阅读全文
摘要:
# *_*coding:utf-8 *_* # @Author : zyb from locust import TaskSet, task, FastHttpUser, between, events # 定义任务集类 @events.request.add_listener def on_req 阅读全文
摘要:
class CC(): def aa(self): print('aa') def bb(self): print('bb') CC=CC() getattr(CC,'aa',)() 传参 class CC(): def aa(self,aa): print(aa) def bb(self): pr 阅读全文
摘要:
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056) 解决:卸载之前的 certifi requestscertifi==2018.8.13 requests==2.19.1 -i http://mi 阅读全文
摘要:
# coding:utf8 import croniter, datetime def CronRunNextTimelist(sched, frequency=1): now = datetime.datetime.now() cron = croniter.croniter(sched, now 阅读全文