Loading

摘要: 代理模式 为另一个对象提供一个替身或占位符以控制对这个对象的访问 #该服务器接受如下格式数据,addr代表地址,content代表接收的信息内容 info_struct=dict() info_struct["addr"]=10000 info_struct["content"]="" class 阅读全文
posted @ 2020-11-06 17:35 lixin2020 阅读(92) 评论(0) 推荐(0)
摘要: oop设计原则 单一职责原则(Single Responsiblity Principle, SRP) 一个类负责一项职责 开闭原则(Open Closed Principle, OCP) 一个软件实体如类、模块和函数应该对扩展开放,对修改关闭 里氏替换原则(Liskov Substitution 阅读全文
posted @ 2020-11-06 15:42 lixin2020 阅读(167) 评论(0) 推荐(0)