ws
This commit is contained in:
		@@ -75,12 +75,15 @@ manager = WebsocketUtil()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def write(id: str, ws: List):
 | 
			
		||||
    print(f"序列化对象{ws}")
 | 
			
		||||
    with open(f"{id}.pkl", "wb") as f:
 | 
			
		||||
        wsdump = pickle.dump(ws, f)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def read(id: str):
 | 
			
		||||
    
 | 
			
		||||
    with open(f"{id}.pkl", "rb") as f:
 | 
			
		||||
        wss = pickle.load(f)
 | 
			
		||||
        print(wss)
 | 
			
		||||
    print(f"反序列化对象{wss}")
 | 
			
		||||
    return wss
 | 
			
		||||
		Reference in New Issue
	
	Block a user