逻辑#
逻辑页面涵盖了 VEXcode 项目如何思考、存储数据、对事件做出反应以及使用常见的 Python 工具:
Control – Pause, loop, and control the flow of your program.
Timer – Measure durations, trigger events after a set time, or reset for new timing operations.
Variables – Store values like numbers, text, and lists for use throughout your project.
Functions – Group commands into reusable chunks of code.
Events – Group functions together and run them in parallel by broadcasting an event.
Math – Built-in functions and the full
math
module for calculations.Random – Generate random numbers and select random values.
其他页面可帮助您格式化数据、定义颜色以及使用 Python 内置的工具:
Operators let you compare values, combine expressions, and perform logical tests.
Comments let you describe what your code does without affecting how it runs.
Custom Colors allow you to define your own RGB or hex color values.
String Formatting explains how to format text, numbers, and output using f-strings.
MicroPython Libraries show which standard Python libraries are available.
Threads allow parts of your program to run in parallel.