-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc71e11
commit 22d4910
Showing
83 changed files
with
920 additions
and
204 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file modified
BIN
+1.7 KB
(130%)
build/doctrees/get-started-with-ezblock2.0/get-started-with-ezblock2.0.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion
8
build/html/_sources/get-started-with-ezblock2.0/get-started-with-ezblock2.0.md.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# basic | ||
|
||
|
||
* ![a](./img/basic/Start.jpg) | ||
- **effect:** The block placed in Start will only be executed once, which is suitable for some initialization operations in the block | ||
## ![a](./img/basic/Start.jpg) | ||
- **effect:** The block placed in Start will only be executed once, which is suitable for some initialization operations in the block | ||
*** | ||
|
||
|
||
* ![a](./img/basic/Forever.jpg) | ||
- **effect:** The content in the block will loop indefinitely | ||
## ![a](./img/basic/Forever.jpg) | ||
- **effect:** The content in the block will loop indefinitely | ||
*** | ||
|
||
|
||
|
||
* ![a](./img/basic/print.jpg) | ||
- **effect:** The corresponding content can be output to the console, which can be used for debugging | ||
- **parameter:** `"abc"` is what you want to output, it can be any type | ||
## ![a](./img/basic/print.jpg) | ||
- **effect:** The corresponding content can be output to the console, which can be used for debugging | ||
- **parameter:** `"abc"` is what you want to output, it can be any type | ||
*** | ||
|
||
* ![a](./img/basic/delay.jpg) | ||
- **effect:** Delay a certain time,Set duration for operation | ||
- **parameter:** `"100"` Can only be a number type, in milliseconds | ||
## ![a](./img/basic/delay.jpg) | ||
- **effect:** Delay a certain time,Set duration for operation | ||
- **parameter:** `"100"` Can only be a number type, in milliseconds | ||
*** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ Product | |
|
||
basic | ||
logic | ||
loops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,59 @@ | ||
# logic | ||
|
||
* ![asef](./img/logic/ifdo.jpg) | ||
- **effect:** Used to capture changes in variables to respond When the condition is met, that is, when the parameter value is true, the content of the block will be executed | ||
## ![a](./img/logic/ifdo.jpg) | ||
- **effect:** Used to capture changes in variables to respond When the condition is met, that is, when the parameter value is true, the content of the block will be executed | ||
|
||
*** | ||
|
||
* ![a](./img/logic/dengdengyu.jpg) | ||
- **effect:** Compare the left and right parameters, return a Boolean value, return true if the condition is met, otherwise return false | ||
- **parameter:** The value type on the left and right sides must be the same, for example, both are numbers or both are characters | ||
## ![a](./img/logic/dengdengyu.jpg) | ||
- **effect:** Compare the left and right parameters, return a Boolean value, return true if the condition is met, otherwise return false | ||
- **parameter:** The value type on the left and right sides must be the same, for example, both are numbers or both are characters | ||
|
||
*** | ||
|
||
* ![a](./img/logic/and.jpg) | ||
- **effect:** It will return a Boolean value, and the parameters on both sides must also be Boolean values. __If both sides are true__, return __`true`__. __If either party is false or both parties are false__, return __`false`__. | ||
* ![a](./img/logic/or.jpg) | ||
- **effect:** Returns a boolean value, the parameters on both sides must also be boolean values, __as long as either of them is `true`__, it will return `true`, __and only when both are `fasle`__ will it return `false` | ||
![a](./img/logic/andexample.jpg) | ||
computational results: | ||
``` | ||
true | ||
false | ||
``` | ||
## ![a](./img/logic/and.jpg) | ||
- **effect:** It will return a Boolean value, and the parameters on both sides must also be Boolean values. __If both sides are true__, return __`true`__. __If either party is false or both parties are false__, return __`false`__. | ||
## ![a](./img/logic/or.jpg) | ||
- **effect:** Returns a boolean value, the parameters on both sides must also be boolean values, __as long as either of them is `true`__, it will return `true`, __and only when both are `fasle`__ will it return `false` | ||
![a](./img/logic/andexample.jpg) | ||
computational results: | ||
``` | ||
true | ||
false | ||
``` | ||
|
||
*** | ||
|
||
* ![a](./img/logic/not.jpg) | ||
- **effect:** Splicing before the block whose return value is Boolean will get the __opposite Boolean value__ | ||
![a](./img/logic/notexample.jpg) | ||
computational results: | ||
``` | ||
false | ||
``` | ||
## ![a](./img/logic/not.jpg) | ||
- **effect:** Splicing before the block whose return value is Boolean will get the __opposite Boolean value__ | ||
![a](./img/logic/notexample.jpg) | ||
computational results: | ||
``` | ||
false | ||
``` | ||
*** | ||
|
||
* ![a](./img/logic/true.jpg) | ||
- **effect:** That is, the boolean value `true`. | ||
* ![a](./img/logic/false.jpg) | ||
- **effect:** That is, the boolean value `false`. | ||
## ![a](./img/logic/true.jpg) | ||
- **effect:** That is, the boolean value `true`. | ||
## ![a](./img/logic/false.jpg) | ||
- **effect:** That is, the boolean value `false`. | ||
*** | ||
|
||
* ![a](./img/logic/null.jpg) | ||
- **effect:** Generally used to compare or assign values to variables | ||
## ![a](./img/logic/null.jpg) | ||
- **effect:** Generally used to compare or assign values to variables | ||
*** | ||
|
||
* ![a](./img/logic/on.jpg) | ||
* ![a](./img/logic/off.jpg) | ||
- **effect:** In fact, it has the same function as the `true` block and the `false` block. They are all boolean values, but this block is more suitable for switch state assignment. | ||
## ![a](./img/logic/on.jpg) | ||
## ![a](./img/logic/off.jpg) | ||
- **effect:** In fact, it has the same function as the `true` block and the `false` block. They are all boolean values, but this block is more suitable for switch state assignment. | ||
*** | ||
|
||
* ![a](./img/logic/test.jpg) | ||
- **effect:** This is a ternary expression, if the return value of `test` is `true` then the block after `if true` will be executed, and vice versa | ||
- **example:** | ||
![a](./img/logic/testexample.jpg) | ||
computational results: | ||
``` | ||
equality | ||
``` | ||
## ![a](./img/logic/test.jpg) | ||
- **effect:** This is a ternary expression, if the return value of `test` is `true` then the block after `if true` will be executed, and vice versa | ||
- **example:** | ||
![a](./img/logic/testexample.jpg) | ||
computational results: | ||
``` | ||
equality | ||
``` | ||
*** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# loops | ||
|
||
## ![a](./img/loops/repeat.jpg) | ||
- **effect:** The code in the block will be executed a certain number of times | ||
- **parameter:** The parameter must be an integer, used to specify the number of cycles | ||
- **example:** | ||
![a](./img/loops/repeatexample.jpg) | ||
computational results: | ||
``` | ||
1 | ||
2 | ||
3 | ||
4 | ||
5 | ||
``` | ||
*** | ||
|
||
## ![a](./img/loops/repeattrue.jpg) | ||
## ![a](./img/loops/repeatuntil.jpg) | ||
- **effect:** When the conditions are met, the content in the block will be executed repeatedly | ||
- **parameter:** | ||
__while:__ The type of the parameter is Boolean. When the value of the parameter is __`true`__, it will enter the loop. | ||
__until:__ The type of the parameter is Boolean. When the value of the parameter is __`false`__, it will enter the loop. | ||
- **example:** | ||
![a](./img/loops/repeattrueexample.jpg) | ||
computational results: | ||
``` | ||
1 | ||
2 | ||
3 | ||
4 | ||
5 | ||
``` | ||
***If it is `until` then nothing will be output*** | ||
*** | ||
|
||
## ![a](./img/loops/foreach.jpg) | ||
- **effect:** Read the specified list from the subscript [0] in order | ||
- **parameter:** The parameter can only be a value of type list | ||
- **example:** | ||
![a](./img/loops/foreachexample.jpg) | ||
computational results: | ||
``` | ||
1 | ||
2 | ||
3 | ||
``` | ||
*** | ||
|
||
## ![a](./img/loops/countwith.jpg) | ||
- **effect:** Set the start number and increment number on the basis of `repeat 10 times` | ||
- **parameter:** The parameters can only be integers. During the loop, the current subscript value will be assigned to `j`, `5` means starting number, `10` means ending number, `2` means increasing number, and in non-special cases, second Parameter is not greater than the third parameter | ||
- **example:** | ||
![a](./img/loops/countwithexample.jpg) | ||
computational results: | ||
``` | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
``` | ||
*** | ||
## ![a](./img/loops/breakcountinue.jpg) | ||
- **effect:** `Break` and `countinue` can only be used in a loop block. The execution of `break` in a loop block will terminate the entire loop. If `countinue` is executed, it will jump out of this loop and start the next loop. | ||
|
||
computational results: | ||
``` | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
``` | ||
*** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# math | ||
|
||
## ![a](./img/math/ling.jpg) | ||
- **effect:** | ||
*** | ||
|
||
## ![a](./img/math/lingxling.jpg) | ||
- **effect:** | ||
*** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.