摘要:
def ConnectTest(url): try: response = requests.get(url) return response.status_code except requests.exceptions.ConnectionError: ... 阅读全文
摘要:
#!/usr/bin/python# coding:utf-8import reimport urlparse# 解析urldef ParseUrl(url): if not re.search(r"^http[s]?://",url): if ":443" in url: ... 阅读全文