摘要: import socket from urllib import request,error try: response = request.urlopen('https://cuiqingcai.com/index/htm',timeout=0.01) except error.HTTPError as e: #先捕获子类错误HTTPError print(e.reas... 阅读全文
posted @ 2019-02-21 23:41 Adeline~ 阅读(182) 评论(0) 推荐(0)
摘要: 官方文档 阅读全文
posted @ 2019-02-21 23:36 Adeline~ 阅读(168) 评论(0) 推荐(0)