mirror of
https://github.com/LiteyukiStudio/magicoca.git
synced 2024-11-23 00:57:37 +08:00
27 lines
285 B
Markdown
27 lines
285 B
Markdown
# magicoca
|
|
A communication library for Python
|
|
|
|
## 支持的通信方式
|
|
- 进程通信
|
|
|
|
## 稀奇古怪的语法
|
|
|
|
```python
|
|
from magicoca.chan import Chan
|
|
|
|
ch = Chan()
|
|
|
|
# 发送消息
|
|
|
|
ch << "hello"
|
|
|
|
# 接受消息
|
|
|
|
msg = str << ch
|
|
|
|
# 通道关闭
|
|
|
|
ch.close()
|
|
|
|
# 可跨进程通信
|
|
``` |