def gen_killer_str(text):
    m = re.match('.*】(\\w+)の敵を攻撃.*(\\d+)[％%]上昇.*', text, re.UNICODE)
    if m:
        killer = m.group(1)
        if (killer == '猛牛系'):
            return 'killer=Killer.bull, '
        elif (killer == '巨人系'):
            return 'killer=Killer.giant, '
        elif (killer == '魔獣系'):
            return 'killer=Killer.beast, '
        elif (killer == '精霊系'):
            return 'killer=Killer.fairy, '
        elif (killer == '植物系'):
            return 'killer=Killer.plant, '
        elif (killer == '昆虫系'):
            return 'killer=Killer.bug, '
        elif (killer == '堅鉱系'):
            return 'killer=Killer.rock, '
        elif (killer == '蠕獣系'):
            return 'killer=Killer.worm, '
        elif (killer == '竜系'):
            return 'killer=Killer.dragon, '
        elif (killer == '水棲系'):
            return 'killer=Killer.aquatic, '
        elif (killer == '妖鬼系'):
            return 'killer=Killer.orge, '
        elif (killer == '幽魔系'):
            return 'killer=Killer.undead, '
        else:
            raise ValueError
    return ''
def gen_killer_str(text):
    m = re.match('.*】(\\w+)の敵を攻撃.*(\\d+)[％%]上昇.*', text, re.UNICODE)
    if m:
        killer = m.group(1)
        if (killer == '猛牛系'):
            return 'killer=Killer.bull, '
        elif (killer == '巨人系'):
            return 'killer=Killer.giant, '
        elif (killer == '魔獣系'):
            return 'killer=Killer.beast, '
        elif (killer == '精霊系'):
            return 'killer=Killer.fairy, '
        elif (killer == '植物系'):
            return 'killer=Killer.plant, '
        elif (killer == '昆虫系'):
            return 'killer=Killer.bug, '
        elif (killer == '堅鉱系'):
            return 'killer=Killer.rock, '
        elif (killer == '蠕獣系'):
            return 'killer=Killer.worm, '
        elif (killer == '竜系'):
            return 'killer=Killer.dragon, '
        elif (killer == '水棲系'):
            return 'killer=Killer.aquatic, '
        elif (killer == '妖鬼系'):
            return 'killer=Killer.orge, '
        elif (killer == '幽魔系'):
            return 'killer=Killer.undead, '
        else:
            raise ValueError
    return 