摘要:
@functools.wraps(func) 用在装饰器函数之上,用于写装饰器时,保留原有函数的名称和函数属性。 # 定义一个最简单的装饰器 def user_login_data(f): def wrapper(*args, **kwargs): return f(*args, **kwargs) 阅读全文
posted @ 2021-04-12 17:15
blitheG
阅读(491)
评论(0)
推荐(1)
摘要:
一、 gunicorn介绍 1.1 gunicorn gunicorn是一个python Wsgi http server,只支持在Unix系统上运行,来源于Ruby的unicorn项目。 Gunicorn使用prefork master-worker模型(在gunicorn中,master被称为a 阅读全文
posted @ 2021-04-12 14:42
blitheG
阅读(585)
评论(0)
推荐(0)

浙公网安备 33010602011771号