全为1时计算个数,出现0返回0
摘要:
#reply=input('How can I help you? ') def size_1(m_grid): #计算总共1的个数 count=0 for row in grid: for i in row: if i==1: count+=1 else: count=0 break if cou 阅读全文
posted @ 2019-07-21 15:38 Eleni 阅读(153) 评论(1) 推荐(0) 编辑