From 5c9ffb4c9dd6b0d92d6aaf0d2cd1047611d3d6cc Mon Sep 17 00:00:00 2001 From: pbgco2nhq <1625354389@qq.com> Date: Sat, 27 Apr 2024 22:46:38 +0800 Subject: [PATCH 1/9] Update README.md --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5503356..95fffee 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,18 @@ -# pythonfire +##介绍 +这个项目是我们小zu学习 Python Fire 的学习报告。Python Fire 是一个开源库,它可以通过单个函数、对象调用生成命令行界面(CLI),无需编写大量的代码。在这个学习报告中,我们将分享对 Python Fire和git的学习心得和使用经验。 +##安装: +可打开命令行用pip工具安装 +`pip install fire` +##使用方法 +示例: +```import fire +def hello(name="World"): + return f"Hello, {name}!" + +if __name__ == "__main__": + fire.Fire(hello) +``` +通过运行以上代码,你可以在命令行中输入 python test.py hello --name="Alice" 来执行 hello 函数并传递参数。 +##总结 +Python Fire 是一个非常强大和灵活的工具,可以帮助你快速创建命令行界面。 \ No newline at end of file From 17d73b605f3a301da4f19170ce88076124d8df9d Mon Sep 17 00:00:00 2001 From: pbgco2nhq <1625354389@qq.com> Date: Sat, 27 Apr 2024 22:47:09 +0800 Subject: [PATCH 2/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 95fffee..3ff192f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ##介绍 -这个项目是我们小zu学习 Python Fire 的学习报告。Python Fire 是一个开源库,它可以通过单个函数、对象调用生成命令行界面(CLI),无需编写大量的代码。在这个学习报告中,我们将分享对 Python Fire和git的学习心得和使用经验。 +这个项目是我们小组学习 Python Fire 的学习报告。Python Fire 是一个开源库,它可以通过单个函数、对象调用生成命令行界面(CLI),无需编写大量的代码。在这个学习报告中,我们将分享对 Python Fire和git的学习心得和使用经验。 ##安装: 可打开命令行用pip工具安装 `pip install fire` From ca039ea2560921f73b9b974347784503f25cd944 Mon Sep 17 00:00:00 2001 From: pbgco2nhq <1625354389@qq.com> Date: Sat, 27 Apr 2024 22:48:42 +0800 Subject: [PATCH 3/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3ff192f..300ceab 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ##介绍 这个项目是我们小组学习 Python Fire 的学习报告。Python Fire 是一个开源库,它可以通过单个函数、对象调用生成命令行界面(CLI),无需编写大量的代码。在这个学习报告中,我们将分享对 Python Fire和git的学习心得和使用经验。 -##安装: + ##安装: 可打开命令行用pip工具安装 `pip install fire` ##使用方法 From af8b0566dc6f38e2390434e5c8286400c78ad782 Mon Sep 17 00:00:00 2001 From: pbgco2nhq <1625354389@qq.com> Date: Sat, 27 Apr 2024 22:49:05 +0800 Subject: [PATCH 4/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 300ceab..3ff192f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ##介绍 这个项目是我们小组学习 Python Fire 的学习报告。Python Fire 是一个开源库,它可以通过单个函数、对象调用生成命令行界面(CLI),无需编写大量的代码。在这个学习报告中,我们将分享对 Python Fire和git的学习心得和使用经验。 - ##安装: +##安装: 可打开命令行用pip工具安装 `pip install fire` ##使用方法 From 8f6c40b036814d308dbf505dfe245374256ae260 Mon Sep 17 00:00:00 2001 From: mfg5tzm6n <2758975851@qq.com> Date: Sat, 27 Apr 2024 22:55:43 +0800 Subject: [PATCH 5/9] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3ff192f..964a8e2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -##介绍 +### 介绍 这个项目是我们小组学习 Python Fire 的学习报告。Python Fire 是一个开源库,它可以通过单个函数、对象调用生成命令行界面(CLI),无需编写大量的代码。在这个学习报告中,我们将分享对 Python Fire和git的学习心得和使用经验。 -##安装: +## 安装: 可打开命令行用pip工具安装 `pip install fire` ##使用方法 @@ -14,5 +14,6 @@ if __name__ == "__main__": fire.Fire(hello) ``` 通过运行以上代码,你可以在命令行中输入 python test.py hello --name="Alice" 来执行 hello 函数并传递参数。 -##总结 +它不局限于对函数的调用,可以创造一个类,进行类函数的执行。具体的应用案例在fire-test中。 + Python Fire 是一个非常强大和灵活的工具,可以帮助你快速创建命令行界面。 \ No newline at end of file From 2fc9ba7c1dbbededee42a2226ff42a5c9125a21a Mon Sep 17 00:00:00 2001 From: mfg5tzm6n <2758975851@qq.com> Date: Sat, 27 Apr 2024 22:58:31 +0800 Subject: [PATCH 6/9] Update README.md --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 964a8e2..3b4e3e4 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,9 @@ ### 介绍 这个项目是我们小组学习 Python Fire 的学习报告。Python Fire 是一个开源库,它可以通过单个函数、对象调用生成命令行界面(CLI),无需编写大量的代码。在这个学习报告中,我们将分享对 Python Fire和git的学习心得和使用经验。 -## 安装: +1. 安装: 可打开命令行用pip工具安装 `pip install fire` -##使用方法 -示例: +2. 使用方法示例: ```import fire def hello(name="World"): @@ -14,6 +13,5 @@ if __name__ == "__main__": fire.Fire(hello) ``` 通过运行以上代码,你可以在命令行中输入 python test.py hello --name="Alice" 来执行 hello 函数并传递参数。 -它不局限于对函数的调用,可以创造一个类,进行类函数的执行。具体的应用案例在fire-test中。 - -Python Fire 是一个非常强大和灵活的工具,可以帮助你快速创建命令行界面。 \ No newline at end of file +- 它不局限于对函数的调用,可以创造一个类,进行类函数的执行。具体的应用案例在fire-test中。 +- Python Fire 是一个非常强大和灵活的工具,可以帮助你快速创建命令行界面。 \ No newline at end of file From b0bec06520103c7303c22a1dd6fe36ea2da3175a Mon Sep 17 00:00:00 2001 From: mfg5tzm6n <2758975851@qq.com> Date: Sat, 27 Apr 2024 22:58:43 +0800 Subject: [PATCH 7/9] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b4e3e4..187aabc 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ 可打开命令行用pip工具安装 `pip install fire` 2. 使用方法示例: -```import fire +``` +import fire def hello(name="World"): return f"Hello, {name}!" From 2bc645fdfd7880b09f25b1b2cd32401404a317f3 Mon Sep 17 00:00:00 2001 From: pbgco2nhq <1625354389@qq.com> Date: Sat, 27 Apr 2024 23:02:24 +0800 Subject: [PATCH 9/9] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 187aabc..887f6c8 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,6 @@ 2. 使用方法示例: ``` import fire - def hello(name="World"): return f"Hello, {name}!"