摘要: 生成requirement文件:pip freeze > requirements.txt 根据requirement文件安装依赖库:pip install -r requirement.txt 阅读全文
posted @ 2019-11-15 16:56 LD_Dragon 阅读(168) 评论(0) 推荐(0) 编辑
摘要: # 单例模式 class Index: # 方法1 _instance = None def __new__(cls, *args, **kwargs): if not cls._instance: cls._instance = object.__new__(cls, *args , **kwar 阅读全文
posted @ 2019-11-15 09:53 LD_Dragon 阅读(152) 评论(0) 推荐(0) 编辑