现在的位置: 首页 > 综合 > 正文

Python Challenge 08 Solution

2013年09月07日 ⁄ 综合 ⁄ 共 453字 ⁄ 字号 评论关闭

#!/usr/bin/env python
# -*- coding: UTF-8 -*-
 
__author__ = 'Genesislive'
 
# http://www.pythonchallenge.com/pc/def/integrity.html
 
import bz2
 
# Python bz2 module: http://effbot.org/librarybook/bz2.htm
# search google with 'BZh91AY&SY'
un = 'BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07<]\xc9\x14\xe1BA\x06\xbe\x084'
pw = 'BZh91AY&SY\x94$|\x0e\x00\x00\x00\x81\x00\x03$ \x00!\x9ah3M\x13<]\xc9\x14\xe1BBP\x91\xf08'
 
print bz2.decompress(un)
print bz2.decompress(pw)

抱歉!评论已关闭.