LMonan
3 years ago
| 1 | 1 | things: |
| 2 | 2 | name: things |
| 3 | 3 | value_type: str |
| 4 | description: 所求之事 | |
| 4 | description: '' | |
| 5 | 5 | pray: |
| 6 | 6 | name: pray |
| 7 | 7 | value_type: str |
| 8 | description: 祈祷 | |
| 8 | description: '' | |
| 9 | 9 | output: |
| 10 | 10 | ret1: |
| 11 | 11 | name: ret1 |
| 12 | 12 | value_type: str |
| 13 | description: 本卦 | |
| 13 | description: '' | |
| 14 | 14 | ret2: |
| 15 | 15 | name: ret2 |
| 16 | 16 | value_type: str |
| 17 | description: 变卦 | |
| 17 | description: '' |
| 7 | 7 | 参数请放到params字典中,我们会自动解析该变量。 |
| 8 | 8 | """ |
| 9 | 9 | |
| 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 | ||
| 11 | 13 | # add your code |
| 12 | return {'ret1': 'cat'} | |
| 14 | return {'ret1': 'cat', 'ret2': 'dog'} | |
| 13 | 15 | ⏎ |
| 0 | 0 | { |
| 1 | 1 | "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 | }, | |
| 2 | 13 | { |
| 3 | 14 | "cell_type": "code", |
| 4 | 15 | "execution_count": 1, |
| 22 | 33 | " return {'ret1': 'cat'}\n", |
| 23 | 34 | " " |
| 24 | 35 | ] |
| 25 | }, | |
| 26 | { | |
| 27 | "cell_type": "code", | |
| 28 | "execution_count": null, | |
| 29 | "metadata": { | |
| 30 | "inputHidden": false | |
| 31 | }, | |
| 32 | "outputs": [], | |
| 33 | "source": [] | |
| 34 | 36 | } |
| 35 | 37 | ], |
| 36 | 38 | "metadata": { |
| 159 | 159 | print(f"说明:{turn_symbol_desc}\n" |
| 160 | 160 | f"主预言:{main_indicate}\n" |
| 161 | 161 | 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 | |
| 162 | 166 | |
| 163 | 167 | if __name__ == "__main__": |
| 164 | 168 | obj = YiProgram() |