Html实体编码

s='KEY{J2sa42ahJK-HS11III}'
key=s.split(';')
flag=''
for i in key:
    flag+=chr(int(i[2:]))
print flag