擅长:python、mysql、java
<p><code>echo</code>正在添加新行:</p>
<pre><code>$ python -c 'import hashlib; print hashlib.sha512("test\n").hexdigest()'
0e3e75234abc68f4378a86b3f4b32a198ba301845b0cd6e50106e874345700cc6663a86c1ea125dc5e92be17c98f9a0f85ca9d5f595db2012f7cc3571945c123
</code></pre>
<p>要避免这种情况,请使用<code>echo -n</code>。在</p>