题目: 输入样例: [╮][╭][o][~\][/~] [] [╯][╰][^][-][=][>][<][@][⊙] [Д][▽][_][ε][^] ... 4 1 1 2 2 2 6 8 1 5 5 3 3 4 3 3 2 10 3 9 3 输出样例: ╮(╯▽╰)╭ <(@Д=)/~ o(^ε^)o Are you kidding me? @\/@ Python 先用正则匹配到各部位表情,然后尝试输出完整表情,出现异常就是数组下标越界了,此时输出Are you kidding me? @\/@ import re pat = re.compile(r'\[(.+?)