运行 WebSocket 项目#

The library will use the IP address configured in settings.json. The default IP is set to 192.168.4.1. Make sure to update the IP address in vex/settings.json if necessary.

To run a project, use the python command followed by the path to the file you want to run. For example:

1. Enter the Directory#

要运行 Python 文件,请打开终端并导航到包含该文件的文件夹。

cd examples

2. Run the File Using Python#

python basic/colorful_square.py

查看 AIM WebSocket API 页面 以获取有关 API 的信息以及 VEXcode AIM Python API 和 AIM WebSocket API 之间的任何差异。