-
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
d23e638
commit 8aca38a
Showing
80 changed files
with
1,249 additions
and
15 deletions.
There are no files selected for viewing
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.
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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -13,3 +13,5 @@ Product | |
logic | ||
loops | ||
math | ||
text | ||
lists |
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,62 @@ | ||
# lists | ||
## ![a](./img/lists/createemptylist.jpg) | ||
- **effect:** More often, an empty list is assigned to a variable, or it can be output directly. | ||
*** | ||
|
||
## ![a](./img/lists/createlistwith.jpg) | ||
- **effect:** Initialize a list, or reassign the list | ||
*** | ||
|
||
## ![a](./img/lists/createlistwithitem.jpg) | ||
- **effect:** Assign the same value to the list a certain number of times | ||
*** | ||
|
||
## ![a](./img/lists/inlist.jpg) | ||
- **effect:** Read or delete the value of the corresponding position in the list | ||
*** | ||
|
||
## ![a](./img/lists/inlistas.jpg) | ||
- **effect:** Modify the value of the corresponding position in the list | ||
- **parameter:** When the position parameter is `#`, the first parameter indicates that the position can only be of type int, and the second parameter indicates that the value to be modified can be of any type | ||
*** | ||
|
||
## ![a](./img/lists/inlistfind.jpg) | ||
- **effect:** Find the corresponding value in the list and return the subscript | ||
- **example:** | ||
![a](./img/lists/inlistfindexample.jpg) | ||
computational results: | ||
``` | ||
2 | ||
``` | ||
*** | ||
|
||
## ![a](./img/lists/inlistgetsub-listfromto.jpg) | ||
- **effect:** Get a part of the list by subscript | ||
*** | ||
|
||
## ![a](./img/lists/makewithdelimiter.jpg) | ||
- **effect:** Convert the string to a list, add subscripts through the specified symbols | ||
- **parameter:** Only string | ||
## ![a](./img/lists/maketestforlist.jpg) | ||
- **effect:** Convert the list to a string, and separate them by the specified symbol | ||
- **parameter:** Only list | ||
- **example:** | ||
![a](./img/lists/makewithexample.jpg) | ||
computational results: | ||
``` | ||
['a', 'b', 'c'] | ||
a,*,b,*,c | ||
``` | ||
*** | ||
|
||
## ![a](./img/lists/lengthof.jpg) | ||
- **effect:** Get list length | ||
*** | ||
|
||
## ![a](./img/lists/isempty.jpg) | ||
- **effect:** Determine whether the list is empty, return a Boolean value | ||
*** | ||
|
||
## ![a](./img/lists/sort.jpg) | ||
- **effect:** Sort the list in the specified way and return the sorted list | ||
*** |
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,64 @@ | ||
# lists | ||
## ![a](.\img\lists\createemptylist.jpg) | ||
- **effect:** More often, an empty list is assigned to a variable, or it can be output directly. | ||
*** | ||
|
||
## ![a](.\img\lists\createlistwith.jpg) | ||
- **effect:** Initialize a list, or reassign the list | ||
*** | ||
|
||
## ![a](.\img\lists\createlistwithitem.jpg) | ||
- **effect:** Assign the same value to the list a certain number of times | ||
*** | ||
|
||
## ![a](.\img\lists\inlist.jpg) | ||
- **effect:** Read or delete the value of the corresponding position in the list | ||
*** | ||
|
||
## ![a](.\img\lists\inlistas.jpg) | ||
- **effect:** Modify the value of the corresponding position in the list | ||
- **parameter:** When the position parameter is `#`, the first parameter indicates that the position can only be of type int, and the second parameter indicates that the value to be modified can be of any type | ||
*** | ||
|
||
## ![a](.\img\lists\inlistfind.jpg) | ||
- **effect:** Find the corresponding value in the list and return the subscript | ||
- **example:** | ||
![a](.\img\lists\inlistfindexample.jpg) | ||
computational results: | ||
``` | ||
2 | ||
``` | ||
*** | ||
|
||
## ![a](.\img\lists\inlistgetsub-listfromto.jpg) | ||
- **effect:** Get a part of the list by subscript | ||
*** | ||
|
||
## ![a](.\img\lists\makewithdelimiter.jpg) | ||
- **effect:** Convert the string to a list, add subscripts through the specified symbols | ||
- **parameter:** Only string | ||
- **example:** | ||
![a](.\img\lists\inlistfindexample.jpg) | ||
## ![a](.\img\lists\maketestforlist.jpg) | ||
- **effect:** Convert the list to a string, and separate them by the specified symbol | ||
- **parameter:** Only list | ||
- **example:** | ||
![a](.\img\lists\makewithexample.jpg) | ||
computational results: | ||
``` | ||
['a', 'b', 'c'] | ||
a,*,b,*,c | ||
``` | ||
*** | ||
|
||
## ![a](.\img\lists\lengthof.jpg) | ||
- **effect:** Get list length | ||
*** | ||
|
||
## ![a](.\img\lists\isempty.jpg) | ||
- **effect:** Determine whether the list is empty, return a Boolean value | ||
*** | ||
|
||
## ![a](.\img\lists\sort.jpg) | ||
- **effect:** Sort the list in the specified way and return the sorted list | ||
*** |
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,57 @@ | ||
# basic | ||
|
||
## ![a](./img/text/diandian.jpg) | ||
- **effect:** String value, generally used for assignment or judgment | ||
*** | ||
|
||
|
||
## ![a](./img/text/createtext.jpg) | ||
- **effect:** Used to concatenate strings | ||
- **parameter:** The number of parameters can be any number, the parameters can also be any type, but they will all be converted to string | ||
- **example:** | ||
![a](./img/text/createtextexample.jpg) | ||
computational results: | ||
``` | ||
0.14 | ||
``` | ||
*** | ||
|
||
## ![a](./img/text/appendtext.jpg) | ||
- **effect:** Concatenated string | ||
- **parameter:** the parameters can be any type, but they will all be converted to string | ||
*** | ||
|
||
## ![a](./img/text/lengthof.jpg) | ||
- **effect:** Returns the length of the string, the return value of int type | ||
*** | ||
|
||
## ![a](./img/text/intext.jpg) | ||
## ![a](./img/text/intextlast.jpg) | ||
- **effect:** Check whether there is a corresponding character in the character, and return the position, if not, return 0 | ||
You can set to return the position of the first character found, or return the position of the last character | ||
|
||
- **parameter:** Both parameters are of string type, the first parameter is the main string, and the second parameter represents the character to be found in the first parameter | ||
- **example:** | ||
![a](./img/text/intextexample.jpg) | ||
computational results: | ||
``` | ||
1 | ||
7 | ||
``` | ||
*** | ||
|
||
## ![a](./img/text/getletter.jpg) | ||
- **effect:** Get the string at the specified position in the text | ||
*** | ||
|
||
## ![a](./img/text/getsubstring.jpg) | ||
- **effect:** Get the characters between the specified subscripts in the text | ||
*** | ||
|
||
## ![a](./img/text/touppercase.jpg) | ||
- **effect:** don't say so much | ||
*** | ||
|
||
## ![a](./img/text/trimspaces.jpg) | ||
- **effect:** Needless to say | ||
*** |
Binary file not shown.
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
Oops, something went wrong.