擅长:python、mysql、java
<p>您可以使用可逆的<a href="https://docs.python.org/2/library/base64.html">base64</a>编码。在</p>
<pre><code>>>> import base64
>>> base64.b64encode('http://example.com/here/there/index.html')
'aHR0cDovL2V4YW1wbGUuY29tL2hlcmUvdGhlcmUvaW5kZXguaHRtbA=='
>>> base64.b64decode('aHR0cDovL2V4YW1wbGUuY29tL2hlcmUvdGhlcmUvaW5kZXguaHRtbA==')
'http://example.com/here/there/index.html'
</code></pre>
<p>或者<a href="https://docs.python.org/2/library/binascii.html">binascii</a></p>
^{pr2}$