From 71ad6d1df4a397dcd54f4f1926496ba02c529fdf Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 6 Oct 2023 23:51:21 +0000 Subject: Deployed 4b174b5 to dev with MkDocs 1.5.3 and mike 1.1.2 --- dev/Core/index.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'dev/Core') diff --git a/dev/Core/index.html b/dev/Core/index.html index 706fe21b..c1495a46 100644 --- a/dev/Core/index.html +++ b/dev/Core/index.html @@ -4,17 +4,19 @@ 4 5
git clone https://github.com/HydroRoll-Team/HydroRollCore.git
 cd HydroRollCore
-poetry install --no-dev
+pdm install
 # 或者使用pip
 # pip install HydroRollCore
 
  1. 创建规则包实例
1
-2
mkdir myrules && cd myrules && mkdir rule1
-echo.> config.toml && echo.> __init__.py :: 创建空的配置文件和python运行脚本
+2
+3
mkdir myrules && cd myrules && mkdir rule1
+echo.> config.toml
+echo.> __init__.py
 

__init__.py 创建一个 rule 实例并继承 Rule 基类, 通过编写合适的相关方法与类注册规则包实现规则的自定义。

1
 2
 3
-4
from HydroRollCore import Rules
+4
from HydroRollCore import Rule
 
-class Myrule(Rules):
-  """自设规则包,继承 Rules 基类"""
-
  1. 合理修改你的 config.toml 配置文件,完成注册!

📄 License⚓︎

MIT © 2023-PRESENT 简律纯


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file +class Myrule(Rule): + """自设规则包,继承 Rule 基类""" +
  1. 合理修改你的 config.toml 配置文件,完成注册!

📄 License⚓︎

MIT © 2023-PRESENT 简律纯


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file -- cgit v1.2.3-70-g09d2