4229ca6
LMonan 3 years ago
4 changed file(s) with 23 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
11 things:
22 name: things
33 value_type: str
4 description: 所求之事
4 description: ''
55 pray:
66 name: pray
77 value_type: str
8 description: 祈祷
8 description: ''
99 output:
1010 ret1:
1111 name: ret1
1212 value_type: str
13 description: 本卦
13 description: ''
1414 ret2:
1515 name: ret2
1616 value_type: str
17 description: 变卦
17 description: ''
77 参数请放到params字典中,我们会自动解析该变量。
88 """
99
10 param1 = conf['param1'] # value_type: str # description: some description
10 wish = conf['things'] # value_type: str # description: some description
11 pray = conf['pray']
12
1113 # add your code
12 return {'ret1': 'cat'}
14 return {'ret1': 'cat', 'ret2': 'dog'}
1315
00 {
11 "cells": [
2 {
3 "cell_type": "code",
4 "execution_count": null,
5 "metadata": {
6 "inputHidden": false
7 },
8 "outputs": [],
9 "source": [
10 "import y1"
11 ]
12 },
213 {
314 "cell_type": "code",
415 "execution_count": 1,
2233 " return {'ret1': 'cat'}\n",
2334 " "
2435 ]
25 },
26 {
27 "cell_type": "code",
28 "execution_count": null,
29 "metadata": {
30 "inputHidden": false
31 },
32 "outputs": [],
33 "source": []
3436 }
3537 ],
3638 "metadata": {
159159 print(f"说明:{turn_symbol_desc}\n"
160160 f"主预言:{main_indicate}\n"
161161 f"辅预言:{support_indicate}")
162
163 def predict(self, wish: str, pray: str):
164 today = datetime.datetime.now().__format__("%Y%m%d")
165 time_seed_str = wish + pray + today
162166
163167 if __name__ == "__main__":
164168 obj = YiProgram()