学习笔记,原文链接 https://refactoringguru.cn/design-patterns/strategy 定义一系列算法, 并将每种算法分别放入独立的类中, 以使算法的对象能够相互替换。