max()错误

我以前遇到过这样的问题,我曾经想过一次.从那时起,我显然忘记了更多的基础知识.
有没有人知道这是怎么回事,因为fday High不是一个空名单…

选择 | 换行 | 行号
  1. >>> import justCup
  2. Traceback (most recent call last):
  3.   File "<interactive input>", line 1, in <module>
  4.   File "justCup.py", line 63, in <module>
  5.     CupStartIndex = fdayhigh.index(max(fdayhigh))
  6. ValueError: max() arg is an empty sequence
  7. >>> 

谢谢

# 回答1


在调用max()之前,您是否尝试过打印fday High?
# 回答2


这正是我会说的.
您可以发布该模块的相关部分,以便我们能够提供帮助.

标签: python

添加新评论