-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
20 changed files
with
195 additions
and
183 deletions.
There are no files selected for viewing
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
4 changes: 2 additions & 2 deletions
4
docx/actions/control/ForEach.md → docx/actions/control/Iterate.md
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,5 +1,5 @@ | ||
# 循环 | ||
循环,主要用来迭代容器 | ||
# 迭代 | ||
用来迭代相应的列表数据,遍历列表的每一个元素,也可称为*循环*。 | ||
|
||
![action](./images/2022-11-17_184608.png ':size=90%') | ||
|
||
|
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,29 @@ | ||
# 参数 | ||
用于获取由父动作传入子动作的数据。例如,在迭代动作的子动作中添加该动作,便可获取被迭代的每个元素值。 | ||
|
||
![Param](./images/2022-11-17_184608.png ':size=90%') | ||
|
||
## 子流程 | ||
|
||
> 不支持 | ||
## 运行参数 | ||
|
||
|
||
|
||
|
||
## 输出 | ||
|
||
> 无 | ||
|
||
## 脚本调用 | ||
|
||
```python | ||
import simple | ||
|
||
|
||
``` | ||
|
||
## 示例 | ||
|
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 服务连接 | ||
连接网络服务端。 | ||
|
||
* *UDP* 是无连接协议,因此 基于*UDP* 协议的网络,可以直接发送或者接收数据。 | ||
|
||
![NetworkConnect](./images/07.png ':size=90%') | ||
|
||
## 子流程 | ||
> 不支持 | ||
## 运行参数 | ||
|
||
|
||
* 主机 | ||
> 服务器地址,通常包含 *IP* 和端口。参考:[HostAddress](../types/HostAddress.md) | ||
* 类型 | ||
> 网络协议。 | ||
## 输出 | ||
> 套接字,可用于读取或者发送数据,*UDP*协议,参考:[UDPSocket](../types/UDPSocket.md)。*TCP*协议,参考:[TCPSocket](../types/TCPSocket.md)。 | ||
## 脚本调用 | ||
|
||
```python | ||
import simple; | ||
|
||
``` | ||
|
||
### 示例 | ||
|
||
*TCP*示例: https://github.com/shelllet/WinUi/blob/main/network/TcpListen.simple | ||
*UDP* 示例: https://github.com/shelllet/WinUi/blob/main/network/UdpListen.simple | ||
|
||
|
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,34 @@ | ||
# 网络服务 | ||
创建一个网络服务端。 | ||
|
||
* *UDP* 是无连接协议,因此 基于*UDP* 协议的网络,直接发送或者接收数据即可,无需监听端口。 | ||
|
||
![NetworkListen](./images/01.png ':size=90%') | ||
|
||
## 子动作 | ||
> 不支持,客户端连接的 *套接字* 会传入子流程中。如果是 *UDP*, 传递参数:[UDPSocket](../types/UDPSocket.md)。如果是*TCP*, 传递参数: [TCPSocket](../types/TCPSocket.md) | ||
## 运行参数 | ||
|
||
|
||
* 端口 | ||
> 监听的主机地址,通常包含 *IP* 地址和端口,*IP* 地址可空。参考:[HostAddress](../types/HostAddress.md) | ||
* 类型 | ||
> 网络协议,支持 *TCP* 或者 *UDP* 协议。 | ||
## 输出 | ||
|
||
> 如果是 *TCP* 协议,返回[TcpServer](../types/TcpServer.md) ,如果是*UDP*协议,返回 [UDPSocket](../types/UDPSocket.md)。 | ||
### 脚本调用 | ||
|
||
```python | ||
import simple; | ||
|
||
``` | ||
|
||
### 资源 | ||
|
||
*TCP*示例: https://github.com/shelllet/WinUi/blob/main/network/TcpListen.simple | ||
*UDP* 示例: https://github.com/shelllet/WinUi/blob/main/network/UdpListen.simple | ||
|
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,32 @@ | ||
# 数据接收 | ||
接收网络数据。 | ||
|
||
![NetworkReceive](./images/05.png ':size=90%') | ||
|
||
## 子流程 | ||
> 不支持 | ||
## 运行参数 | ||
|
||
* 主机 | ||
|
||
> 如果是 *TCP* 协议,该参数类型为:[TCPSocket](../types/TCPSocket.md)。如果是*UDP* 协议,该参数是主机地址,参考:[主机地址](../types/HostAddress.md)或者 [UDPSocket](../types/UDPSocket.md) | ||
|
||
## 输出 | ||
|
||
> 收到的数据,参考:[字符串](../types/String.md)。 | ||
|
||
## 脚本调用 | ||
|
||
```python | ||
import simple; | ||
|
||
``` | ||
|
||
## 示例 | ||
|
||
*TCP*示例: https://github.com/shelllet/WinUi/blob/main/network/TcpListen.simple | ||
*UDP* 示例: https://github.com/shelllet/WinUi/blob/main/network/UdpListen.simple | ||
|
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,33 @@ | ||
# 数据发送 | ||
通过网络,发送数据。 | ||
|
||
![NetworkSend](./images/03.png ':size=90%') | ||
|
||
## 子流程 | ||
> 不支持 | ||
## 运行参数 | ||
|
||
* 主机 | ||
>> 如果是 *TCP* 协议,该参数类型为:[TCPSocket](../types/TCPSocket.md)。如果是*UDP* 协议,该参数是主机地址,参考:[主机地址](../types/HostAddress.md)或者 [UDPSocket](../types/UDPSocket.md) | ||
* 数据 | ||
> 发送的数据。该数据会被序列化成[字符串](../types/String.md)发送。 | ||
## 输出 | ||
|
||
> 如果是 *TCP* 协议,该动作返回:[TCPSocket](../types/TCPSocket.md)。如果是*UDP* 协议,该动作返回: [UDPSocket](../types/UDPSocket.md) | ||
### 脚本调用 | ||
|
||
```python | ||
import simple; | ||
|
||
``` | ||
|
||
### 示例 | ||
|
||
*TCP*示例: https://github.com/shelllet/WinUi/blob/main/network/TcpListen.simple | ||
*UDP* 示例: https://github.com/shelllet/WinUi/blob/main/network/UdpListen.simple | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.