max()错误
我以前遇到过这样的问题,我曾经想过一次.从那时起,我显然忘记了更多的基础知识.
有没有人知道这是怎么回事,因为fday High不是一个空名单…
选择 | 换行 | 行号
- >>> import justCup
- Traceback (most recent call last):
- File "<interactive input>", line 1, in <module>
- File "justCup.py", line 63, in <module>
- CupStartIndex = fdayhigh.index(max(fdayhigh))
- ValueError: max() arg is an empty sequence
- >>>
谢谢