会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
JCL_1023
博客园
首页
新随笔
联系
订阅
管理
2021年1月12日
Python socket实现简单聊天,同步输入和接收消息
摘要: 查的资料很多都是必须等待接收数据后才能再次输入。做了修改,使用多线程的形式,实现一边输入,一边接收 服务端代码 import socket import threading import sys import time spaces = " " * 50 # 主要是为了让输入和接收的消息区分开 de
阅读全文
posted @ 2021-01-12 16:25 JCL_1023
阅读(357)
评论(0)
推荐(0)
编辑
公告