none = True ifnangbe = 0 #定义变量 while none: ifnangbe += 1 #变量+i if ifnangbe%3 == 2 and ifnangbe%5 == 3 and ifnangbe%7 == 2: print("符合",ifnangbe) none=False #假就停止循环 else: #否则 print("不符合",ifnangbe) #输出ifnangbe
python“while循环”
请登录之后再进行评论
登录
none = True ifnangbe = 0 #定义变量 while none: ifnangbe += 1 #变量+i if ifnangbe%3 == 2 and ifnangbe%5 == 3 and ifnangbe%7 == 2: print("符合",ifnangbe) none=False #假就停止循环 else: #否则 print("不符合",ifnangbe) #输出ifnangbe
请登录之后再进行评论