输出100个不能被3整除的数,还要书写算数描述我总是不知道怎样才可以输出100
i,n=0,0 while n<=100: i+=1 if i%3 != 0: print(i) n+=1
定义一个i来计数,当i达到100就停止循环