完善使用样例

This commit is contained in:
2026-02-28 11:22:00 +08:00
parent 682b2743fe
commit f3c1fc98f7
4 changed files with 58 additions and 1 deletions

View File

@@ -4,7 +4,10 @@ jfinal-enjoy 5.2.2 的python 3.9.0 实现基于jpype1实现。
python port by mrzhou@miw.cn
### 使用样例
```
```python
from enjoy import Enjoy
if __name__ == "__main__":
# 1. 配置参数(必须修改为你的实际路径)
JAR_PATH = "enjoy-5.2.2.jar" # enjoy-5.2.2.jar的绝对/相对路径
TEMPLATE_BASE_PATH = "./templates" # 模板文件所在目录如index.html放在这个目录下