yangsaisai
7 years ago
| 20 | 20 | |
| 21 | 21 | # Make controller alias for further use |
| 22 | 22 | controller = client.controller |
| 23 | writer = start_model() | |
| 23 | # writer = start_model() | |
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | def handle(conf): |
| 27 | 27 | # paste your code here |
| 28 | 28 | # path = os.getcwd() # 获取当前工作目录 |
| 29 | 29 | # print(path) |
| 30 | if conf['style'] == ['藏头诗']: | |
| 31 | poetry = writer.cangtou(conf['Chinese_word']) | |
| 32 | elif conf['style'] == ['藏字诗']: | |
| 33 | poetry = writer.hide_words(conf['Chinese_word']) | |
| 34 | else: | |
| 35 | poetry = writer.rhyme_verse() | |
| 30 | # if conf['style'] == ['藏头诗']: | |
| 31 | # poetry = writer.cangtou(conf['Chinese_word']) | |
| 32 | # elif conf['style'] == ['藏字诗']: | |
| 33 | # poetry = writer.hide_words(conf['Chinese_word']) | |
| 34 | # else: | |
| 35 | # poetry = writer.rhyme_verse() | |
| 36 | 36 | # return {"Poetry": poetry} |
| 37 | 37 | return {"Poetry": 'asadd'} |
| 38 | 38 |
| 20 | 20 | |
| 21 | 21 | # Make controller alias for further use |
| 22 | 22 | controller = client.controller |
| 23 | writer = start_model() | |
| 23 | # writer = start_model() | |
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | def handle(conf): |
| 27 | 27 | # paste your code here |
| 28 | 28 | # path = os.getcwd() # 获取当前工作目录 |
| 29 | 29 | # print(path) |
| 30 | if conf['style'] == ['藏头诗']: | |
| 31 | poetry = writer.cangtou(conf['Chinese_word']) | |
| 32 | elif conf['style'] == ['藏字诗']: | |
| 33 | poetry = writer.hide_words(conf['Chinese_word']) | |
| 34 | else: | |
| 35 | poetry = writer.rhyme_verse() | |
| 30 | # if conf['style'] == ['藏头诗']: | |
| 31 | # poetry = writer.cangtou(conf['Chinese_word']) | |
| 32 | # elif conf['style'] == ['藏字诗']: | |
| 33 | # poetry = writer.hide_words(conf['Chinese_word']) | |
| 34 | # else: | |
| 35 | # poetry = writer.rhyme_verse() | |
| 36 | 36 | # return {"Poetry": poetry} |
| 37 | 37 | return {"Poetry": 'asadd'} |
| 38 | 38 |