擅长:python、mysql、java
<p>您可以尝试使用<code>re</code></p>
<pre><code>import re
post = "Reform health care to serve patients, not corporate medicine http://t.co/WMKJKU4hl7 @PNHP #SinglePayerSunday http://t.co/i4bNrruUNS"
print re.sub(r'http://.*','',post)
</code></pre>