白皮书下载
Special component editing rules
1. Folding assembly:
Folding component refers to folding some continuous components through the visual folding component function to reduce the display space of the view and make the view clearer.
-
#@_ foldIndicates the start of the folding component -
#@_ foldFollowed bySpace + text,textAs foldedPrompt languagecontent -
#@Indicates the end of this folding component
The corresponding codes are as follows:
#@_ Folding test folding
a=one
b=two
#@

The insert code component is a visual component that can write Python code and code description within its scope.
-
#@_ Insert codeIndicates the start of the component -
#@_ Insert codeFollowed bySpace + text,textThe content will be used as the source of the inserted codeComponent description -
#@Indicates the end of the component
#@_ Insert code
a=one
b=two
#@


3. Note component:
Annotation component refers to annotating a line of code to make the code invalid and unenforceable; Not a descriptive comment on a line or end code.
-
#@_ notesIndicates the beginning of the comment -
If a component is annotated, an annotated code block is displayed
-
#@Indicates the end of the comment
#@_ notes
# a = 1
# b = 2
#@


4. Self built components:
Self built components call special prefixes through functionsTAST_ COMPONENTAnd ID. when parsing, find the corresponding self built component. If it is not loaded, an error message will be displayed.






