72fc5c2
yangsaisai 7 years ago
2 changed file(s) with 14 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
2020
2121 # Make controller alias for further use
2222 controller = client.controller
23 writer = start_model()
23 # writer = start_model()
2424
2525
2626 def handle(conf):
2727 # paste your code here
2828 # path = os.getcwd() # 获取当前工作目录
2929 # 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()
3636 # return {"Poetry": poetry}
3737 return {"Poetry": 'asadd'}
3838
2020
2121 # Make controller alias for further use
2222 controller = client.controller
23 writer = start_model()
23 # writer = start_model()
2424
2525
2626 def handle(conf):
2727 # paste your code here
2828 # path = os.getcwd() # 获取当前工作目录
2929 # 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()
3636 # return {"Poetry": poetry}
3737 return {"Poetry": 'asadd'}
3838