摘要: 一、基本使用 import logging if __name__ == '__main__': logging.basicConfig(level = logging.DEBUG,format = '%(asctime)s - %(name)s - %(levelname)s - %(messag 阅读全文
posted @ 2020-04-18 16:15 样子2018 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 一、服务端 import socketserver import time conn_poll = [] class MyServer(socketserver.BaseRequestHandler): def handle(self): print('... connected from {}'. 阅读全文
posted @ 2020-04-18 08:44 样子2018 阅读(1054) 评论(0) 推荐(0) 编辑