{"id":685,"date":"2014-07-21T15:29:03","date_gmt":"2014-07-21T15:29:03","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=685"},"modified":"2014-07-21T15:29:03","modified_gmt":"2014-07-21T15:29:03","slug":"%e5%a6%82%e4%bd%95%e5%b0%86-pyc%e5%92%8c-pyo%e6%96%87%e4%bb%b6%e5%8f%8d%e7%bc%96%e8%af%91%e4%b8%ba-py%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/685.html","title":{"rendered":"\u5982\u4f55\u5c06.pyc\u548c.pyo\u6587\u4ef6\u53cd\u7f16\u8bd1\u4e3a.py\u6587\u4ef6"},"content":{"rendered":"<div style=\"color: #000000;\"><strong>\u76ee\u7684\uff1a<\/strong>\u4e0b\u8f7d\u4e00\u6279pyc\u6587\u4ef6\uff0c\u5e0c\u671b\u53ef\u4ee5\u5c06\u5176\u53cd\u7f16\u8bd1\u4e3apy\u6587\u4ef6\uff0c\u4fbf\u4e8e\u9605\u8bfb\u548c\u4fee\u6539\u3002<\/div>\n<div style=\"color: #000000;\">\n<p><strong>\u5de5\u5177\uff1a<\/strong>py2.7 uncompyle2 \uff08Win7 x64\u7cfb\u7edf\uff09<\/p>\n<p><strong>\u6b65\u9aa4\uff1a<\/strong><\/p>\n<p><em>step 1.<\/em>\u00a0\u5b89\u88c5python2.7\uff0c\u5e76\u5c06python\u6dfb\u52a0\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d<\/p>\n<p><em>step 2.<\/em>\u00a0<span style=\"color: #ff0000;\"><strong>\u5b89\u88c5uncompyle2<\/strong><\/span><\/p>\n<ul>\n<ul>\n<li>\u4e0b\u8f7duncompyle2\uff1a<a href=\"https:\/\/github.com\/wibiti\/uncompyle2\" target=\"_blank\">https:\/\/github.com\/wibiti\/uncompyle2<\/a><\/li>\n<li>\u89e3\u538b\u4e4b\u540e\uff0c\u5728CMD\u6a21\u5f0f\u8fdb\u5165\u8be5\u76ee\u5f55\uff0c\u8f93\u5165\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1apython setup.py install<\/li>\n<li>\u6d4b\u8bd5\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1a\n<pre class=\"lang:default decode:true\">python C:\\Python27\\Scripts\\uncompyle2 -h<\/pre>\n<\/li>\n<\/ul>\n<\/ul>\n<p><em>step 3.<\/em>\u00a0\u53cd\u7f16\u8bd1pyc\u6587\u4ef6<\/p>\n<p style=\"padding-left: 30px;\">\u4f7f\u7528\u547d\u4ee4\uff1a<\/p>\n<pre class=\"lang:default decode:true\">python C:\\Python27\\Scripts\\uncompyle2 C:\\vpn.pyc &gt; vpn.py<\/pre>\n<p>It Works!<\/p>\n<p>\u5176\u5b83\u529f\u80fd\u548c\u6280\u5de7\uff0c\u7b49\u5f85\u8fdb\u4e00\u6b65\u5b66\u4e60\u548c\u6316\u6398&#8230;&#8230;<\/p>\n<h6>\u53c2\u8003\u94fe\u63a5\uff1a<\/h6>\n<ul>\n<li><a href=\"http:\/\/www.bravelee.net\/2014\/04\/02\/compile-pyc-to-py\" target=\"_blank\">http:\/\/www.bravelee.net\/2014\/04\/02\/compile-pyc-to-py<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/wibiti\/uncompyle2\" target=\"_blank\">https:\/\/github.com\/wibiti\/uncompyle2<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u7684\uff1a\u4e0b\u8f7d\u4e00\u6279pyc\u6587\u4ef6\uff0c\u5e0c\u671b\u53ef\u4ee5\u5c06\u5176\u53cd\u7f16\u8bd1\u4e3apy\u6587\u4ef6\uff0c\u4fbf\u4e8e\u9605\u8bfb\u548c\u4fee\u6539\u3002 \u5de5\u5177\uff1apy2.7 uncompyle [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,12],"tags":[8],"class_list":["post-685","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-tools","tag-python"],"views":7821,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=685"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/685\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}