From 31a4dfc8e5670843b742125f9e5ad428ec6ea638 Mon Sep 17 00:00:00 2001 From: zj3D Date: Wed, 20 Mar 2024 14:49:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E4=B8=AD=E5=BF=83=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../流式调用/{1 连续调用.py => 1 嵌套调用.py} | 0 .../松耦合/消息驱动的组件/2 去中心化开始.py | 3 +++ .../{2 仅有消息接口.py => 3 仅有消息接口.py} | 0 3 files changed, 3 insertions(+) rename 11 概念认知/流式调用/{1 连续调用.py => 1 嵌套调用.py} (100%) rename 11 概念认知/流式调用/2 嵌套调用.py => 15 工程化/松耦合/消息驱动的组件/2 去中心化开始.py (69%) rename 15 工程化/松耦合/消息驱动的组件/{2 仅有消息接口.py => 3 仅有消息接口.py} (100%) diff --git a/11 概念认知/流式调用/1 连续调用.py b/11 概念认知/流式调用/1 嵌套调用.py similarity index 100% rename from 11 概念认知/流式调用/1 连续调用.py rename to 11 概念认知/流式调用/1 嵌套调用.py diff --git a/11 概念认知/流式调用/2 嵌套调用.py b/15 工程化/松耦合/消息驱动的组件/2 去中心化开始.py similarity index 69% rename from 11 概念认知/流式调用/2 嵌套调用.py rename to 15 工程化/松耦合/消息驱动的组件/2 去中心化开始.py index 048a004..0f4a20e 100644 --- a/11 概念认知/流式调用/2 嵌套调用.py +++ b/15 工程化/松耦合/消息驱动的组件/2 去中心化开始.py @@ -1,5 +1,8 @@ from cppy.cp_util import * +# 这个例子没有实际意义,是用来帮助理解下一个例子 +# 程序,只需要做第一件事情,后面的顺序逻辑写到各个函数里面了 + def readfile(path_to_file, func): data = read_file(path_to_file) func(data, frequencies) diff --git a/15 工程化/松耦合/消息驱动的组件/2 仅有消息接口.py b/15 工程化/松耦合/消息驱动的组件/3 仅有消息接口.py similarity index 100% rename from 15 工程化/松耦合/消息驱动的组件/2 仅有消息接口.py rename to 15 工程化/松耦合/消息驱动的组件/3 仅有消息接口.py