白皮书下载
Source code editing rules
Follow Python syntax coding rules, please seeAt the same time, we also provide the association prompt function of Python code to help users complete task block editing.
follow Intelligence Indeed Technology Co.Ltd. The visual view rules for source code transformation are as follows:
1. When switching from source view to visual view, the program will verify the code
-
If the code verification passes, the code will be converted into a visual component once, and the visual view will be switched successfully.
-
If the code verification fails, the program will output an error message on the console, pop up a box to prompt the error, and switch to the visual view fails. The switch can be successful only after the error syntax is corrected.
2. When the code written in the source code view is run or saved, the program will verify the code
-
If the code passes the verification and meets the requirements of converting to components in the visual view, it will be saved or run successfully.
-
If the code verification fails and the saving or running is not successful, the program will output an error message on the console and pop-up a prompt. You need to solve the syntax error before saving or running the currently written content.
3. In the source code view, the program will verify the current code when switching to other task blocks without closing the encoding mode
-
If the code verification passes, the other task blocks are successfully switched and the edited content is saved. When switching to other task blocks, it is located in the visual view, and then when switching to the current task block, it is still located in the source code view and editing is enabled.
-
If the code verification fails, the program will output an error message on the console, pop up a box to prompt the error, and the task block switching fails. The switching can be successful only after the wrong syntax is corrected.
four Intelligence Indeed Technology Co.Ltd. The visual view component takes up the annotation function in Python code. Therefore, when you write a common annotation in the source code view, saving or running will not be recorded. At the same time, the code will not be recorded after it is converted into a visual component. The annotation displayed in the source code view is Intelligence Indeed Technology Co.Ltd. Default annotations configured automatically for each component.
5. “ Notes & rdquo; Component, because Intelligence Indeed Technology Co.Ltd. The visual view component takes up the common annotation function in Python, so we provide a visual view & ldquo; Notes & rdquo; Component, you can add comments to a block or continuity code, which needs to be followed。
6. As above, if a blank line is written in the source code view, the save or run will not be recorded, and only one blank line will be reserved between components by default according to the component rules.
7. If the syntax of a line of code written is correct, but it is saved in & amp; If no corresponding visualization component is found at runtime, the code will be converted to Visualization & ldquo; Insert code & rdquo; Component, if saved in & amp; When the syntax of consecutive lines of code is correct but cannot be converted to the corresponding visual component, the consecutive lines of code will be converted to a visual & ldquo; Insert code & rdquo; Components.
8. In addition Intelligence Indeed Technology Co.Ltd. Some special visualization components are used to mark or handle special situations, so there is no corresponding Python code. Please check for details。




