擅长:python、mysql、java
<p>为什么不是这个?你知道吗</p>
<pre><code>while True:
for url in urls:
success = False
while (not success):
try:
downloadPage(url)
success = True
except ConnectionException:
raw_input('Connection lost. Press enter to try again')
</code></pre>