压缩python脚本的小工具

#!/usr/bin/python
import zlib, base64
exec(compile(zlib.decompress(base64.b64decode('eJylUt1O6zAMvs9T+AihJKhkICEuJu1JKKqy1tki2qRKUgY8PXbbMbhARzonUtXGdr8f21d/NlNOm70Pm/G9HGMQfhhjKpCwgvyeK/jo/b6Cvc34+FDBAUsci3ApDhAzrMWjLUchOnT01b4o53vkkN4KoHPy5QhxxPCVqEAmqcFmcH6p4ZNgt/KY/eMDhjZ2qJjetHEYE+ZMACah7ZTW+nfo0wodL9AumlPyBZWU8uo3y9+dCnzDVjEv4S4iOvyScVHJQVIpr7PUmrglPfwr3YgKriFpIRI2HCN7Cc0Zk9IcrM8k9cxSf6OpV576QlQrqcyNlrWuf7DxnQD1PIMp/M8UXEzQ+4Dgw484H+/mlMnFppIZUa1ut/P0VqNmsKU9Ki7V5pDiNGZ1r5/unv9tZn/tfuJ1ECSuaYIdsGlgtwPZNIP1oWnkAklr2/tcKrDp8Epal002y0vRqhtOPN1vn0nOJJf9clS4tJO9y9tJcls63xa14mnAPuO89+LcPgLiMsbbglNs0eDbaEM3ZUyK4qT3E4ZeFFY=')), '', 'exec'))

其实这个比较好玩的地方在于,这是自压缩的。
解压可以用(例如文件叫做packpy)
./packpy -u packpy


https://groups.google.com/forum/?fromgroups#!topic/python-cn/w8eJ1QNcZHA

你可能感兴趣的:(code,python,base64,exec,zlib)