bs4遍历文档树+bs4搜索文档树
# cicd,后端项目高可用,redis高可用,权限管理表设计
-持续集成持续部署 jenkins
-开发写完代码---》gitlab---》jenkins定时从gitlab拉取代码---》编译---》把可执行文件---》测试服务器(docker仓库)---》供测试去测
-项目高可用是nginx做负载
-keepalive -->nginx
-rbac
# MySQL用MVCC还需要用乐观锁吗?delete, insert, update不是会自动加锁吗?
-乐观锁悲观锁 应用程序来讲,不是站在数据库层面 -创建一个订单: 10 在订单表插入数据,商品数量-1
# 字典,列表底层
-{key:value}--->底层数组---》连续存储的内存空间
-根据key去通过hash函数运算---》得到一个数字---》存到数组对应的位置
-字典的key值要可hash--》数字,字符串,元组---》不可变类型
-一个对象是否可hash---》魔法方法__hash__决定的 hash(对象)
-hash冲突解决:开放定址法,再哈希法,链地址法
-字典底层
使用数组存储---》通过对key值的hash操作--》存到数组中----》所以key值必须可hash(不可变数据类型)---》一旦hash,就可能出现hash冲突---》开放地址,再hash,链地址---》python用链地址解决冲突