diff options
| author | 2023-06-25 09:45:46 +0800 | |
|---|---|---|
| committer | 2023-06-25 09:45:46 +0800 | |
| commit | a3c3882cee4b270e3dfd8dadc607176f49b0cfed (patch) | |
| tree | cbe3022887455cf416f7ee39b5dab456232195f0 /README.md | |
| parent | 0e4a3657ce2f42044772acb3078cf39d2fc3c336 (diff) | |
| download | infini-a3c3882cee4b270e3dfd8dadc607176f49b0cfed.tar.gz infini-a3c3882cee4b270e3dfd8dadc607176f49b0cfed.zip | |
Update README.md
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -33,13 +33,13 @@ echo.> config.toml && echo.> __init__.py :: 创建空的配置文件和python运 在 `__init__.py` 创建一个 `rule` 实例并继承 `Rule` 基类, 通过编写合适的相关方法与类注册规则包实现规则的自定义。 ``` python -from hydrorollcore import Rule +from HydroRollCore import Rules -class rule(Rule): - ... +class Myrule(Rules): + """自设规则包,继承 Rules 基类""" -class Wiki(rule): - ... +class Wiki(Myrule): + """wiki 词条类,继承 Myrule 类""" ``` 3. 合理修改你的 `config.toml` 配置文件,完成注册! |
