diff options
| author | 2024-01-25 17:46:34 +0800 | |
|---|---|---|
| committer | 2024-01-25 17:46:34 +0800 | |
| commit | c4eb3ae7a74c7c6881540d7d04502600197a8b2a (patch) | |
| tree | c920c29c383da4d496a0f646e5d4d0f5de10a406 /docs/RulePackage | |
| parent | 3c3e121bc845573a2d2408c0db6be6f841fd8efc (diff) | |
| download | infini-c4eb3ae7a74c7c6881540d7d04502600197a8b2a.tar.gz infini-c4eb3ae7a74c7c6881540d7d04502600197a8b2a.zip | |
:fire: feat(docs): remove old documents
Diffstat (limited to 'docs/RulePackage')
| -rw-r--r-- | docs/RulePackage/Write/prepare.md | 0 | ||||
| -rw-r--r-- | docs/RulePackage/Write/python.md | 0 | ||||
| -rw-r--r-- | docs/RulePackage/Write/write.md | 0 | ||||
| -rw-r--r-- | docs/RulePackage/getStart/attribute.md | 12 | ||||
| -rw-r--r-- | docs/RulePackage/getStart/class.md | 6 | ||||
| -rw-r--r-- | docs/RulePackage/getStart/getDeeper/Module.md | 14 | ||||
| -rw-r--r-- | docs/RulePackage/getStart/getDeeper/Package.md | 12 | ||||
| -rw-r--r-- | docs/RulePackage/getStart/getDeeper/object.md | 8 | ||||
| -rw-r--r-- | docs/RulePackage/getStart/method.md | 10 | ||||
| -rw-r--r-- | docs/RulePackage/intro.md | 36 | ||||
| -rw-r--r-- | docs/RulePackage/skill/fstring.md | 4 | ||||
| -rw-r--r-- | docs/RulePackage/skill/index.md | 0 |
12 files changed, 0 insertions, 102 deletions
diff --git a/docs/RulePackage/Write/prepare.md b/docs/RulePackage/Write/prepare.md deleted file mode 100644 index e69de29b..00000000 --- a/docs/RulePackage/Write/prepare.md +++ /dev/null diff --git a/docs/RulePackage/Write/python.md b/docs/RulePackage/Write/python.md deleted file mode 100644 index e69de29b..00000000 --- a/docs/RulePackage/Write/python.md +++ /dev/null diff --git a/docs/RulePackage/Write/write.md b/docs/RulePackage/Write/write.md deleted file mode 100644 index e69de29b..00000000 --- a/docs/RulePackage/Write/write.md +++ /dev/null diff --git a/docs/RulePackage/getStart/attribute.md b/docs/RulePackage/getStart/attribute.md deleted file mode 100644 index 70deeb06..00000000 --- a/docs/RulePackage/getStart/attribute.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: attribute 属性 ---- - -!!! info - 关联到一个对象的值,通常使用点号表达式按名称来引用。 举例来说,如果对象 o 具有属性 a 则可以用 o.a 来引用它。 - - 如果对象允许,将未被定义为 [标识符和关键字] 的非标识名称用作一个对象的属性也是可以的,例如使用 [setattr()]。 这样的属性将无法使用点号表达式来访问,而是必须通过 [getattr()] 来获取。 - - [标识符和关键字]: https://docs.python.org/zh-cn/3/reference/lexical_analysis.html#identifiers - [setattr()]: https://docs.python.org/zh-cn/3/library/functions.html#setattr - [getattr()]:https://docs.python.org/zh-cn/3/library/functions.html#getattr
\ No newline at end of file diff --git a/docs/RulePackage/getStart/class.md b/docs/RulePackage/getStart/class.md deleted file mode 100644 index a6628452..00000000 --- a/docs/RulePackage/getStart/class.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: class 类 ---- - -!!! info - 用来创建用户定义对象的模板。类定义通常包含对该类的实例进行操作的方法定义。
\ No newline at end of file diff --git a/docs/RulePackage/getStart/getDeeper/Module.md b/docs/RulePackage/getStart/getDeeper/Module.md deleted file mode 100644 index 91438ee5..00000000 --- a/docs/RulePackage/getStart/getDeeper/Module.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: Module 模块 ---- -!!! info - 此对象是 Python 代码的一种组织单位。各模块具有独立的命名空间,可包含任意 Python 对象。模块可通过 [importing] 操作被加载到 Python 中。 - - 另见 [package]。 - - [importing]: https://docs.python.org/zh-cn/3/glossary.html#term-importing - [package]: ../Package - - - -:material-information-outline:{ title="Important information" } diff --git a/docs/RulePackage/getStart/getDeeper/Package.md b/docs/RulePackage/getStart/getDeeper/Package.md deleted file mode 100644 index c683d5d6..00000000 --- a/docs/RulePackage/getStart/getDeeper/Package.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: Package 包 ---- - -!!! info - 一种可包含子模块或递归地包含子包的 Python [module]。 从技术上说,包是具有 __path__ 属性的 Python 模块。 - - 另参见 [regular package] 和 [namespace package]。 - - [module]: ../Module - [regular package]: https://docs.python.org/zh-cn/3/glossary.html#term-regular-package - [namespace package]: https://docs.python.org/zh-cn/3/glossary.html#term-namespace-package
\ No newline at end of file diff --git a/docs/RulePackage/getStart/getDeeper/object.md b/docs/RulePackage/getStart/getDeeper/object.md deleted file mode 100644 index f9a801a6..00000000 --- a/docs/RulePackage/getStart/getDeeper/object.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: object 对象 ---- - -!!! info - 任何具有状态(属性或值)以及预定义行为(方法)的数据。object 也是任何 [new-style class] 的最顶层基类名。 - - [new-style class]: https://docs.python.org/zh-cn/3/glossary.html#term-new-style-class
\ No newline at end of file diff --git a/docs/RulePackage/getStart/method.md b/docs/RulePackage/getStart/method.md deleted file mode 100644 index 00e58149..00000000 --- a/docs/RulePackage/getStart/method.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: method 方法 ---- - -!!! info - 在类内部定义的函数。如果作为该类的实例的一个属性来调用,方法将会获取实例对象作为其第一个 [argument] (通常命名为 self)。参见 [function] 和 [nested scope]。 - - [argument]: https://docs.python.org/zh-cn/3/glossary.html#term-argument - [function]: https://docs.python.org/zh-cn/3/glossary.html#term-function - [nested scope]:https://docs.python.org/zh-cn/3/glossary.html#term-nested-scope
\ No newline at end of file diff --git a/docs/RulePackage/intro.md b/docs/RulePackage/intro.md deleted file mode 100644 index 8c948cb9..00000000 --- a/docs/RulePackage/intro.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -title: 概述 ---- - -!!! abstract - 此章节涉及到真正的 Python 规范问题,因此请认真阅读并多加练习,方能写出漂亮的代码。 - - -### 安装规则包 - -水系规则包可以通过 `pip` Pyhton 包管理工具直接下载,但是为了方便,我们推荐以下两个安装方案。 - -=== "使用`pdm`管理器" - - ```shell - pdm install MyRule - ``` - - 如果你使用`pdm`管理自己的规则包或开启自己的水系骰子,那么非常推荐使用这种方案来集成形如 `infini-Rule-The_Pool`这般包名的规则。 - -=== "使用`hrc`管理器" - - ```shell - hrc install MyRule - ``` - - 一般来说推荐使用`hrc`管理器来安装和调试规则包。 (1) - - 1. 这样会无视虚拟环境规则而直接找到当前使用的文件路径,而不需要像`pdm`那样只能用在`pdm`本身创建的虚拟环境内了。 - - -`HRC`管理器的原理是使用`pip`获取包后`cp`到当前所指定的目录(或者默认目录)。对于不熟悉命令行的用户来说,一个`webui`或许是更适合的方案。 - -### 编写规则包 - -要编写规则包,需要懂得`Python`相关的知识以及一些计算机常识。在接下来的好几个章节里你将会被一步一引导学习如何制作一个规则包。
\ No newline at end of file diff --git a/docs/RulePackage/skill/fstring.md b/docs/RulePackage/skill/fstring.md deleted file mode 100644 index 2835bffd..00000000 --- a/docs/RulePackage/skill/fstring.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: 善用语法糖 ---- - diff --git a/docs/RulePackage/skill/index.md b/docs/RulePackage/skill/index.md deleted file mode 100644 index e69de29b..00000000 --- a/docs/RulePackage/skill/index.md +++ /dev/null |
