n=0 b=[] a=[2,3,3,0,0,2,4,7,5,7] for i in a: if i%2!=0: n+=1 b.append(n) else: n=0 print max(b)
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....