# 运行时错误：Windows不支持add_reader()

- **ID:** `python/asyncio-loop-add-reader`
- **领域:** python
- **类别:** system_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

在Windows上使用asyncio.add_reader()或add_writer()，因为Windows默认使用ProactorEventLoop。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.7 | active | — | — |
| 3.8 | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   reader, writer = await asyncio.open_connection(host, port)
   ```
2. **** (95% 成功率)
   ```
   asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
   ```

## 无效尝试

- **** — Same issue; the loop type is still Proactor. (90% 失败率)
- **** — Works but may have other limitations on Windows. (30% 失败率)
