摘要:
https://eastlakeside.gitbook.io/interpy-zh/decorators/ 1.授权 from functools import wraps def requires_auth(f): @wraps(f) def decorated(*args, **kwargs) 阅读全文
摘要:
详情参考:https://www.cnblogs.com/shenbuer/p/7724091.html 一、单例模式的概述: 单例模式是一种常用的软件设计模式。在它的核心结构中只包含一个被称为单例类的特殊类。通过单例模式可以保证系统中一个类只有一个实例而且该实例易于外界访问,从而方便对实例个数的控 阅读全文