摘要: 服务端 # coding: utf-8 import socket import threading server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind(('0.0.0.0', 8000)) server.li 阅读全文
posted @ 2020-08-02 17:11 AngDH 阅读(496) 评论(0) 推荐(0) 编辑
摘要: # coding: utf-8 import socket from urllib.parse import urlparse def get_url(url): url = urlparse(url) host = url.netloc path = url.path if path == "": 阅读全文
posted @ 2020-08-02 13:41 AngDH 阅读(1158) 评论(0) 推荐(0) 编辑