摘要: from socket import timeout try: response = urllib.request.urlopen(url, timeout=10).read().decode('utf-8') except (HTTPError, URLError) as error: loggi 阅读全文
posted @ 2021-01-25 19:26 清源居士 阅读(465) 评论(0) 推荐(0) 编辑