基于PyWebIO的聊天室,仅74行代码

Lylelove

编程|2022-8-10|最后更新: 2022-11-3|
type
status
date
slug
summary
tags
category
icon
password
Property
Nov 3, 2022 02:17 AM

预览

移动端
notion image
PC端
notion image

Demo

简介

使用PyWebIO库,仅126行代码。
可实现实时聊天,在线人数统计,显IP,时间。

需求

  • Python>=3.5.2
  • PyWebIO
  • asyncio

代码