看代码;
利用urlopen中的超时参数设立一个循环
while True: try: page = urllib.request.urlopen(url, timeout=3) break except: tracebake.print_exc()