擅长:python、mysql、java
<p>您应该看看<a href="http://docs.python.org/library/stdtypes.html#dict.get" rel="nofollow">dict.get</a>方法:</p>
<pre><code>SearchValue = SearchValue.splitlines()
for targetValue in SearchValue:
print LineText.get(targetValue, 'Error:' + targetValue)
</code></pre>