擅长:python、mysql、java
<p>用<a href="https://docs.python.org/2.7/library/itertools.html#itertools.cycle" rel="nofollow"><strong>^{<cd1>}</strong></a>解决:</p>
<pre><code>from itertools import cycle
lst = ["a", "b", "c", "d", "e"]
pool = cycle(lst)
new = []
start = False
for item in pool:
if item == 'c':
start = not start
if not start:
break
if start:
new.append(item)
print new
>>> ['c', 'd', 'e', 'a', 'b']
</code></pre>