各位先进好,目前我在自学PYTHON
使用的书精通PYTHON,目前学到第四章有遇到一个问题
想请前辈协助解答
numbers = [1,3,5]
>>> position = 0
>>> while position < len(numbers):
... number = numbers[position]
... if number % 2 == 0:
... print('Found even number', number)
... break
... position += 1
... else: # break not called
... print('No even number found')
...
No even number found
主要是红色的这段语法 我不明白
numbers[position]的意思
再麻烦前辈了,谢谢。
PS.如果有人有PYTHON的学习群组,再拜托加我,谢谢