# python_websocket_html5
**Repository Path**: ginnywzj/python_websocket_html5
## Basic Information
- **Project Name**: python_websocket_html5
- **Description**: 手机通过浏览器访问由python在电脑上创建的服务器网页,使手机和电脑建立websocket连接。手机会把重力加速度的一些处理信息发给电脑,然后这些信息通过电脑端的python程序来模拟电脑按键,从而实现操控电脑游戏。
- **Primary Language**: Python
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 8
- **Forks**: 1
- **Created**: 2016-11-18
- **Last Updated**: 2021-07-05
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
python运行方式:
1、运行index.py和websocket.py
2、运行main.py
两种效果是一样的,不能同时运行两种方式。
main.py是把index.py和websocket.py放在同一个文件采用多线程执行。
如果你运行main.py会报错那就选中第1种方式吧。