新建 stats.py，含 mean/median，空列表均返回 0.0，偶数个取中间两数平均。
自测块已真实运行：

```
$ python stats.py
M-OK
MD-OK
all stats self-tests passed
```