擅长:python、mysql、java
<p>你一定喜欢<a href="http://docs.python.org/library/bisect.html" rel="nofollow">bisect</a>模块。在</p>
<pre><code>def caught_speeding(speed, is_birthday):
l=[60,80]
if is_birthday:
speed-=5
return bisect.bisect_left(l,speed)
</code></pre>