【发布时间】:2016-07-01 23:01:48
【问题描述】:
我正在尝试使用 while 循环编写一个返回列表中第一个偶数的函数
def first_even(list):
while i%2 !=0: #I'm not sure if this is a good start for the while loop, but I think I'm supposed to use something%2...
#no idea what to do here
【问题讨论】:
-
使用Div功能! link
标签: python-3.x while-loop