摘要:
生成requirement文件:pip freeze > requirements.txt 根据requirement文件安装依赖库:pip install -r requirement.txt 阅读全文
摘要:
# 单例模式 class Index: # 方法1 _instance = None def __new__(cls, *args, **kwargs): if not cls._instance: cls._instance = object.__new__(cls, *args , **kwar 阅读全文