387a2a2
yangsaisai 7 years ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2424
2525 def handle(conf):
2626 # paste your code here
27 if conf['style'] == ['藏头诗']:
27 if conf['style'] == '藏头诗':
2828 poetry = writer.cangtou(conf['Chinese_word'])
29 elif conf['style'] == ['藏字诗']:
29 elif conf['style'] == '藏字诗':
3030 poetry = writer.hide_words(conf['Chinese_word'])
3131 else:
3232 poetry = writer.rhyme_verse()
2424
2525 def handle(conf):
2626 # paste your code here
27 if conf['style'] == ['藏头诗']:
27 if conf['style'] == '藏头诗':
2828 poetry = writer.cangtou(conf['Chinese_word'])
29 elif conf['style'] == ['藏字诗']:
29 elif conf['style'] == '藏字诗':
3030 poetry = writer.hide_words(conf['Chinese_word'])
3131 else:
3232 poetry = writer.rhyme_verse()