优化抽象工厂模式示例,添加品牌方法并重构工厂实现,更新构建脚本以支持更清晰的输出

This commit is contained in:
2025-12-09 10:56:44 +08:00
parent c5c0cf76b2
commit 59f61e54fd
5 changed files with 97 additions and 63 deletions
+8 -4
View File
@@ -1,9 +1,13 @@
DIRS := $(shell ls -d */)
.PHONY: test
test:
ifndef VERBOSE
.SILENT:
endif
all:
for dir in $(DIRS); do \
echo "\n"; \
python3 $$dir/main.py; \
done; \
echo "\nAll Python examples executed.\n"
echo "\n"; \
done
echo "All Python examples executed.\n"