摘要: 元类 一切源自于一句话:python中一切皆为对象 一:元类介绍 """ 元类=》OldboyTeacher类=》obj 代码 class OldboyTeacher(object): school = 'oldboy'​ def __init__(self, name, age): self.na 阅读全文
posted @ 2020-08-18 15:43 Οo白麒麟оΟ 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 基于socketserver模块实现并发tcp 客服端 from socket import *​client=socket(AF_INET,SOCK_STREAM)client.connect(('127.0.0.1',8080))​while True: msg=input(">>: ").st 阅读全文
posted @ 2020-08-18 15:05 Οo白麒麟оΟ 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 远程执行命令解决程序粘包问题 客服端 import structfrom socket import *​client = socket(AF_INET, SOCK_STREAM)​# print(client)​client.connect(('127.0.0.1', 8082))​while T 阅读全文
posted @ 2020-08-18 14:51 Οo白麒麟оΟ 阅读(132) 评论(0) 推荐(0) 编辑