# 类型错误：'module' 对象不可调用

- **ID:** `python/typeerror-object-not-callable`
- **领域:** python
- **类别:** type_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

导入模块后将其用作函数，例如 import os; os() 而不是 os.getcwd()。

## 版本兼容性

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

## 解决方案

1. **Call the correct function from the module** (95% 成功率)
   ```
   import os; os.getcwd()
   ```
2. **Use from module import specific function** (90% 成功率)
   ```
   from os import getcwd; getcwd()
   ```

## 无效尝试

- **Renaming the import** — Renaming does not fix the fundamental misuse of calling a module. (70% 失败率)
- **Using from module import *** — Wildcard imports can cause name clashes but do not resolve callable issue. (50% 失败率)
