yangsaisai
7 years ago
| 24 | 24 | |
| 25 | 25 | def handle(conf): |
| 26 | 26 | # paste your code here |
| 27 | if conf['style'] == ['藏头诗']: | |
| 27 | if conf['style'] == '藏头诗': | |
| 28 | 28 | poetry = writer.cangtou(conf['Chinese_word']) |
| 29 | elif conf['style'] == ['藏字诗']: | |
| 29 | elif conf['style'] == '藏字诗': | |
| 30 | 30 | poetry = writer.hide_words(conf['Chinese_word']) |
| 31 | 31 | else: |
| 32 | 32 | poetry = writer.rhyme_verse() |
| 24 | 24 | |
| 25 | 25 | def handle(conf): |
| 26 | 26 | # paste your code here |
| 27 | if conf['style'] == ['藏头诗']: | |
| 27 | if conf['style'] == '藏头诗': | |
| 28 | 28 | poetry = writer.cangtou(conf['Chinese_word']) |
| 29 | elif conf['style'] == ['藏字诗']: | |
| 29 | elif conf['style'] == '藏字诗': | |
| 30 | 30 | poetry = writer.hide_words(conf['Chinese_word']) |
| 31 | 31 | else: |
| 32 | 32 | poetry = writer.rhyme_verse() |