Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Python-ChatRoom

一个简单的聊天室

Usage

  1. 首先启动服务端
python3 server.py 127.0.0.1 port 
  1. 启动客户端
python3 client.py [client_host] [client_port] [server_host] [server_port] 

例如

python client.py 127.0.0.1 2223 127.0.0.1 2222
  1. 设置username和password
username: mki
password: mki
  1. 选择chat mode
b:(broadcast) 群聊 所有用户可见
s:(solo) 私聊 仅选择用户可见
l:(list all users) 显示所有在线用户
e:(exit) 退出chatroom

About

一个简单的聊天室,基于UDP,支持私聊和群聊,暂时不能发涩图

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /