【发布时间】:2013-01-05 02:51:48
【问题描述】:
我正在使用循环查找 Python 列表中的最大数量。为了做到这一点,我需要有一个循环遍历整个列表。我可以使用什么循环来遍历整个列表?我是 Python 新手。
【问题讨论】:
-
如果我只理解您的问题,我将有义务提供帮助。你能改写一下吗?
-
查看 python documentation。您寻求的答案很可能就在那里。
-
来自之前的评论:whatcha talkin bout willis?
-
the exact same question you asked 30 minutes ago 的(高度赞成的)答案有什么问题?
-
您想使用
for循环。 Python 文档:docs.python.org/2/tutorial/controlflow.html