diff --git a/13 多计算单元/数据共享/2 服务进程.py b/13 多计算单元/数据共享/2 服务进程.py index 1ee93eb..a047b1b 100644 --- a/13 多计算单元/数据共享/2 服务进程.py +++ b/13 多计算单元/数据共享/2 服务进程.py @@ -29,6 +29,7 @@ def process_chunk(shared_chunks,word_count): print(e) break + @timing_decorator def main(): # 创建一个Manager实例 @@ -56,5 +57,6 @@ def main(): word_freqs = Counter(word_count).most_common(10) print_word_freqs(word_freqs) + if __name__ == '__main__': - main() + main() \ No newline at end of file diff --git a/14 人机交互/终端/终端命令行/command_line_1.py b/14 人机交互/1 终端/终端命令行/command_line_1.py similarity index 100% rename from 14 人机交互/终端/终端命令行/command_line_1.py rename to 14 人机交互/1 终端/终端命令行/command_line_1.py diff --git a/14 人机交互/终端/终端命令行/command_line_2.py b/14 人机交互/1 终端/终端命令行/command_line_2.py similarity index 100% rename from 14 人机交互/终端/终端命令行/command_line_2.py rename to 14 人机交互/1 终端/终端命令行/command_line_2.py diff --git a/14 人机交互/终端/终端菜单/terminal_menu.py b/14 人机交互/1 终端/终端菜单/terminal_menu.py similarity index 100% rename from 14 人机交互/终端/终端菜单/terminal_menu.py rename to 14 人机交互/1 终端/终端菜单/terminal_menu.py diff --git a/14 人机交互/终端/终端菜单/test.txt b/14 人机交互/1 终端/终端菜单/test.txt similarity index 100% rename from 14 人机交互/终端/终端菜单/test.txt rename to 14 人机交互/1 终端/终端菜单/test.txt diff --git a/14 人机交互/视窗/PyQT.py b/14 人机交互/2 视窗/PyQT.py similarity index 100% rename from 14 人机交互/视窗/PyQT.py rename to 14 人机交互/2 视窗/PyQT.py diff --git a/14 人机交互/视窗/test.txt b/14 人机交互/2 视窗/test.txt similarity index 100% rename from 14 人机交互/视窗/test.txt rename to 14 人机交互/2 视窗/test.txt diff --git a/14 人机交互/Web/MVC/app.py b/14 人机交互/3 Web/MVC/app.py similarity index 100% rename from 14 人机交互/Web/MVC/app.py rename to 14 人机交互/3 Web/MVC/app.py diff --git a/14 人机交互/Web/MVC/models.py b/14 人机交互/3 Web/MVC/models.py similarity index 100% rename from 14 人机交互/Web/MVC/models.py rename to 14 人机交互/3 Web/MVC/models.py diff --git a/14 人机交互/Web/MVC/templates/index.html b/14 人机交互/3 Web/MVC/templates/index.html similarity index 100% rename from 14 人机交互/Web/MVC/templates/index.html rename to 14 人机交互/3 Web/MVC/templates/index.html diff --git a/14 人机交互/Web/simpleWeb/app.py b/14 人机交互/3 Web/simpleWeb/app.py similarity index 100% rename from 14 人机交互/Web/simpleWeb/app.py rename to 14 人机交互/3 Web/simpleWeb/app.py diff --git a/14 人机交互/Web/simpleWeb/templates/index.html b/14 人机交互/3 Web/simpleWeb/templates/index.html similarity index 100% rename from 14 人机交互/Web/simpleWeb/templates/index.html rename to 14 人机交互/3 Web/simpleWeb/templates/index.html diff --git a/14 人机交互/Web/simpleWeb/templates/result.html b/14 人机交互/3 Web/simpleWeb/templates/result.html similarity index 100% rename from 14 人机交互/Web/simpleWeb/templates/result.html rename to 14 人机交互/3 Web/simpleWeb/templates/result.html diff --git a/15 工程化/松耦合/1 消息驱动的组件/1 指令驱动.py b/15 工程化/1 松耦合/1 消息驱动的组件/1 指令驱动.py similarity index 100% rename from 15 工程化/松耦合/1 消息驱动的组件/1 指令驱动.py rename to 15 工程化/1 松耦合/1 消息驱动的组件/1 指令驱动.py diff --git a/15 工程化/松耦合/1 消息驱动的组件/2 去中心化开始.py b/15 工程化/1 松耦合/1 消息驱动的组件/2 去中心化开始.py similarity index 100% rename from 15 工程化/松耦合/1 消息驱动的组件/2 去中心化开始.py rename to 15 工程化/1 松耦合/1 消息驱动的组件/2 去中心化开始.py diff --git a/15 工程化/松耦合/1 消息驱动的组件/3 仅有消息接口.py b/15 工程化/1 松耦合/1 消息驱动的组件/3 仅有消息接口.py similarity index 100% rename from 15 工程化/松耦合/1 消息驱动的组件/3 仅有消息接口.py rename to 15 工程化/1 松耦合/1 消息驱动的组件/3 仅有消息接口.py diff --git a/15 工程化/松耦合/注册登记/注册回调.py b/15 工程化/1 松耦合/2 注册登记/注册回调.py similarity index 100% rename from 15 工程化/松耦合/注册登记/注册回调.py rename to 15 工程化/1 松耦合/2 注册登记/注册回调.py diff --git a/15 工程化/松耦合/注册登记/消息订阅.py b/15 工程化/1 松耦合/2 注册登记/消息订阅.py similarity index 100% rename from 15 工程化/松耦合/注册登记/消息订阅.py rename to 15 工程化/1 松耦合/2 注册登记/消息订阅.py diff --git a/15 工程化/松耦合/微服务/client_app.py b/15 工程化/1 松耦合/3 微服务/client_app.py similarity index 100% rename from 15 工程化/松耦合/微服务/client_app.py rename to 15 工程化/1 松耦合/3 微服务/client_app.py diff --git a/15 工程化/松耦合/微服务/counter_service.py b/15 工程化/1 松耦合/3 微服务/counter_service.py similarity index 100% rename from 15 工程化/松耦合/微服务/counter_service.py rename to 15 工程化/1 松耦合/3 微服务/counter_service.py diff --git a/15 工程化/松耦合/微服务/sorter_service.py b/15 工程化/1 松耦合/3 微服务/sorter_service.py similarity index 100% rename from 15 工程化/松耦合/微服务/sorter_service.py rename to 15 工程化/1 松耦合/3 微服务/sorter_service.py diff --git a/15 工程化/松耦合/微服务/tokenizer_service.py b/15 工程化/1 松耦合/3 微服务/tokenizer_service.py similarity index 100% rename from 15 工程化/松耦合/微服务/tokenizer_service.py rename to 15 工程化/1 松耦合/3 微服务/tokenizer_service.py diff --git a/15 工程化/松耦合/restful/app.py b/15 工程化/1 松耦合/4 restful/app.py similarity index 100% rename from 15 工程化/松耦合/restful/app.py rename to 15 工程化/1 松耦合/4 restful/app.py diff --git a/15 工程化/松耦合/restful/client.py b/15 工程化/1 松耦合/4 restful/client.py similarity index 100% rename from 15 工程化/松耦合/restful/client.py rename to 15 工程化/1 松耦合/4 restful/client.py diff --git a/15 工程化/松耦合/插件/__pycache__/tf-20.cpython-38.pyc b/15 工程化/1 松耦合/5 插件/__pycache__/tf-20.cpython-38.pyc similarity index 100% rename from 15 工程化/松耦合/插件/__pycache__/tf-20.cpython-38.pyc rename to 15 工程化/1 松耦合/5 插件/__pycache__/tf-20.cpython-38.pyc diff --git a/15 工程化/松耦合/插件/config.ini b/15 工程化/1 松耦合/5 插件/config.ini similarity index 100% rename from 15 工程化/松耦合/插件/config.ini rename to 15 工程化/1 松耦合/5 插件/config.ini diff --git a/15 工程化/松耦合/插件/plugins-src/compile.sh b/15 工程化/1 松耦合/5 插件/plugins-src/compile.sh similarity index 100% rename from 15 工程化/松耦合/插件/plugins-src/compile.sh rename to 15 工程化/1 松耦合/5 插件/plugins-src/compile.sh diff --git a/15 工程化/松耦合/插件/plugins-src/frequencies1.py b/15 工程化/1 松耦合/5 插件/plugins-src/frequencies1.py similarity index 100% rename from 15 工程化/松耦合/插件/plugins-src/frequencies1.py rename to 15 工程化/1 松耦合/5 插件/plugins-src/frequencies1.py diff --git a/15 工程化/松耦合/插件/plugins-src/frequencies2.py b/15 工程化/1 松耦合/5 插件/plugins-src/frequencies2.py similarity index 100% rename from 15 工程化/松耦合/插件/plugins-src/frequencies2.py rename to 15 工程化/1 松耦合/5 插件/plugins-src/frequencies2.py diff --git a/15 工程化/松耦合/插件/plugins-src/words1.py b/15 工程化/1 松耦合/5 插件/plugins-src/words1.py similarity index 100% rename from 15 工程化/松耦合/插件/plugins-src/words1.py rename to 15 工程化/1 松耦合/5 插件/plugins-src/words1.py diff --git a/15 工程化/松耦合/插件/plugins-src/words2.py b/15 工程化/1 松耦合/5 插件/plugins-src/words2.py similarity index 100% rename from 15 工程化/松耦合/插件/plugins-src/words2.py rename to 15 工程化/1 松耦合/5 插件/plugins-src/words2.py diff --git a/15 工程化/松耦合/插件/plugins/frequencies1.pyc b/15 工程化/1 松耦合/5 插件/plugins/frequencies1.pyc similarity index 100% rename from 15 工程化/松耦合/插件/plugins/frequencies1.pyc rename to 15 工程化/1 松耦合/5 插件/plugins/frequencies1.pyc diff --git a/15 工程化/松耦合/插件/plugins/frequencies2.cpython-38.pyc b/15 工程化/1 松耦合/5 插件/plugins/frequencies2.cpython-38.pyc similarity index 100% rename from 15 工程化/松耦合/插件/plugins/frequencies2.cpython-38.pyc rename to 15 工程化/1 松耦合/5 插件/plugins/frequencies2.cpython-38.pyc diff --git a/15 工程化/松耦合/插件/plugins/words1.pyc b/15 工程化/1 松耦合/5 插件/plugins/words1.pyc similarity index 100% rename from 15 工程化/松耦合/插件/plugins/words1.pyc rename to 15 工程化/1 松耦合/5 插件/plugins/words1.pyc diff --git a/15 工程化/松耦合/插件/plugins/words2.cpython-38.pyc b/15 工程化/1 松耦合/5 插件/plugins/words2.cpython-38.pyc similarity index 100% rename from 15 工程化/松耦合/插件/plugins/words2.cpython-38.pyc rename to 15 工程化/1 松耦合/5 插件/plugins/words2.cpython-38.pyc diff --git a/15 工程化/松耦合/插件/tf-20.py b/15 工程化/1 松耦合/5 插件/tf-20.py similarity index 100% rename from 15 工程化/松耦合/插件/tf-20.py rename to 15 工程化/1 松耦合/5 插件/tf-20.py diff --git a/15 工程化/对象接口/tf-14A.py b/15 工程化/2 对象接口/tf-14A.py similarity index 100% rename from 15 工程化/对象接口/tf-14A.py rename to 15 工程化/2 对象接口/tf-14A.py diff --git a/15 工程化/对象接口/tf-14B.py b/15 工程化/2 对象接口/tf-14B.py similarity index 100% rename from 15 工程化/对象接口/tf-14B.py rename to 15 工程化/2 对象接口/tf-14B.py diff --git a/15 工程化/类型申明/24A.py b/15 工程化/3 类型申明/24A.py similarity index 100% rename from 15 工程化/类型申明/24A.py rename to 15 工程化/3 类型申明/24A.py diff --git a/15 工程化/类型申明/24B.py b/15 工程化/3 类型申明/24B.py similarity index 100% rename from 15 工程化/类型申明/24B.py rename to 15 工程化/3 类型申明/24B.py