/MyChat

Homework of IS301(SJTU)--Chatroom implemented by PyQt5 & socket

Primary LanguagePython

MyChat

Homework of IS301(SJTU)--Chatroom implemented by PyQt5 & socket

  • 运行方式:

    在powershell运行以下命令

        python Server.py # 启动服务器

        Python MyChat.py # 启动客户端
  • 依赖的包:

    Python标准库中的:

    os --- 操作系统接口模块

    socket --- 底层网络接口

    time --- 时间的访问和转换

    queue --- 一个同步的队列类

    threading --- 基于线程的并行

    sys --- 系统相关的参数和函数

    webbrowser --- 方便的Web浏览器控制器

    sqlite3 --- SQLite 数据库 DB-API 2.0 接口模块

    base64 --- Base16, Base32, Base64, Base85 数据编码

    以上可参见Python3.7标准库

    以及创建GUI应用程序的工具包PyQt5。