摘要: import time def wrapper(n=0): def wrap(func): if not n: def inner(args, **kwargs): start = time.time() res = func(args, **kwargs) end = time.time() pr 阅读全文
posted @ 2025-04-10 16:05 求大佬指导123 阅读(11) 评论(0) 推荐(0)
摘要: import os path=r'F:\PythonProject1' def func(path): lst=[] if os.path.isfile(path): lst.append(os.path.getsize(path)) else: lst1 = os.listdir(path) fo 阅读全文
posted @ 2025-04-10 16:02 求大佬指导123 阅读(11) 评论(0) 推荐(0)
摘要: import hashlib import json import os.path import socket import struct import time class Db: base_path=os.path.dirname(file) dic={ 'register_path':os.p 阅读全文
posted @ 2025-04-07 22:16 求大佬指导123 阅读(39) 评论(0) 推荐(0)
摘要: import hashlib import json import os.path import time class Db: base_dir=os.path.dirname(file) dic={ 'student_path': os.path.join(base_dir,'student_pa 阅读全文
posted @ 2025-04-06 19:51 求大佬指导123 阅读(37) 评论(0) 推荐(0)
摘要: import socket import struct sk=socket.socket() sk.bind(('127.0.0.1',9005)) sk.listen() conn,address=sk.accept() try: # 长度头接收可能不完整未处理 length = conn.rec 阅读全文
posted @ 2025-03-30 16:10 求大佬指导123 阅读(17) 评论(0) 推荐(0)
摘要: import json import os.path import socket path=os.path.join(os.path.dirname(file),'login.txt') sk=socket.socket() sk.bind(('127.0.0.1',9002)) sk.listen 阅读全文
posted @ 2025-03-29 19:02 求大佬指导123 阅读(22) 评论(0) 推荐(0)