擅长:python、mysql、java
<p>您可以找到<code>http://</code>所在的位置,然后将其切片。在</p>
<pre><code>post = "Reform health care to serve patients, not corporate medicine http://t.co/WMKJKU4hl7 @PNHP #SinglePayerSunday http://t.co/i4bNrruUNS"
position = post.index('http://')
print post[:position]
</code></pre>
<p>结果</p>
^{pr2}$