擅长:python、mysql、java
<blockquote>
<p>I have to retrieve it using stdout</p>
</blockquote>
<p>你的意思可能是“stdin”,而不是“stdout”。你知道吗</p>
<pre><code>other_hash = raw_input() # no trailing newline
if this_hash == other_hash:
"same"
</code></pre>
<p>或者可以不带参数调用<code>other_hash.rstrip()</code>,删除所有尾随空格。你知道吗</p>