0
我正在使用python獲取鏈接。突然我失去了連接並顯示如下錯誤。如何在python中的IOError期間自動重新連接
IOError: [Errno socket error] [Errno 110] Connection timed out
如何重新連接相同的鏈接?
例如
import urllib
a = 'http://anzaholyman.files.wordpress.com/2011/12/zip-it.gif'
image = urllib.URLopener()
image.retrieve(a,'1.jpg')
它會幫助你顯示了你的代碼的相關部分 – yurib 2011-12-17 12:41:47
....我已經更新了上面的例子。 你想幫我嗎? – user1070579 2011-12-17 12:49:03