统一换行符

This commit is contained in:
murmur 2023-03-23 10:23:58 +08:00
parent 6367751b7a
commit f2ab3012df

View File

@ -361,10 +361,9 @@ class MyServer(socketserver.BaseRequestHandler):
if not data:
break
add_timestamp()
print(
"接收到新数据", self.client_address, ",长度", len(data), "\r\n", data.hex(" ")
)
s2wx("","",f"接收到新数据,长度{len(data)}字节。")
t = f"接收到新数据,长度{len(data)}字节。"
print(t)
s2wx("","",t)
if tt_decode(conn, data):
self.err= "切断。"
print(self.client_address, "疑是非法连接")