摘要:
升级openssl # 1. 查看当前openssl的版本信息 openssl version #1.0.2 需要升级 # 2. 安装对应的依赖库 sudo yum -y groupinstall "Development tools" sudo yum -y install zlib-devel 阅读全文
摘要:
settings内 。。。 try: from .local_settings import * except Exception as e: print(e) local_settings内 写本地/线上配置 。。。 阅读全文
摘要:
# Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python build/ develop-eggs/ 阅读全文
摘要:
构造 class Connect: def __init__(self): pass def __enter__(self): #链接数据库 return self def __exit__(self,exc_type,exc_val,exc_tb): #关闭数据库 pass def fetchon 阅读全文