magicoca/README.md

27 lines
285 B
Markdown
Raw Permalink Normal View History

2024-10-08 22:06:22 +08:00
# magicoca
A communication library for Python
2024-10-10 00:49:47 +08:00
## 支持的通信方式
- 进程通信
## 稀奇古怪的语法
```python
from magicoca.chan import Chan
ch = Chan()
# 发送消息
ch << "hello"
# 接受消息
msg = str << ch
# 通道关闭
ch.close()
# 可跨进程通信
```