添加服务器上线提示。
This commit is contained in:
parent
887838e69f
commit
9bfd181869
@ -354,6 +354,7 @@ if __name__ == "__main__":
|
|||||||
server = socketserver.ThreadingTCPServer(("", 7222), MyServer)
|
server = socketserver.ThreadingTCPServer(("", 7222), MyServer)
|
||||||
add_timestamp()
|
add_timestamp()
|
||||||
print("服务端初始化成功。", server.server_address)
|
print("服务端初始化成功。", server.server_address)
|
||||||
|
s2wx("天通消息","服务器上线","服务器成功上线")
|
||||||
server.timeout = 10
|
server.timeout = 10
|
||||||
server.serve_forever()
|
server.serve_forever()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user