摘要: # 原则 英文名 作用 1 单一职责原则 SRP: Single Responsibility Principle 一个类只负责一项职责 2 开闭原则 OCP: Open-Closed Principle 对扩展开放,对修改关闭 3 里氏替换原则 LSP: Liskov Substitution P 阅读全文
posted @ 2025-06-09 22:43 cian_4 阅读(62) 评论(0) 推荐(1)