欢迎来到 VEX CTE 的 API 参考网站#

Discover everything you need to start coding with VEXcode CTE, using Blocks and Python. This guide will help you navigate the site and make the most of the available resources.

This API information applies when using either:

API 部分#

如何使用 API 参考#

  1. Choose Your Language: Decide whether you want to use Blocks, Python, or C++ for your project.

    • For Blocks, navigate to the Blocks page.

    • For Python, navigate to the Python page.

  2. 浏览或搜索:使用导航菜单或搜索栏来定位特定的命令或块。

  3. 阅读说明:每个 API 函数都包含一个说明,解释其目的、参数和任何重要说明。

  4. Review the Examples: For commands that include examples, try them out with your own robot to see how they behave! For text-based examples in Python or C++, select the Copy button to copy the example to your clipboard and so it can be pasted into your coding environment.

  5. Experiment and Modify: Try out the command in your projects. Modify its parameters to fit your needs and observe the effects.

成功秘诀#

  • 从简单开始:从基础项目开始熟悉 VEXcode。

  • 阅读 API 参考:探索 API 参考以了解可用的功能及其操作。

  • 定期练习:您编写的代码越多,您对平台的熟练程度就会越高。

编码愉快,欢迎来到 VEXcode CTE!