i=1
while i<=50:
if i%3!=0:
print(i)
i+=1
a = 0
while a <= 50:
a = a + 1
if a%3!=0:
print(a)
else:
a = a + 1
x=1
while x<=50:
if x%3 !=0:
print(x)
x=x+1
i = 1
while i < 51:
if i % 3 != 0:
print(i)
i += 1
签到
awa
s=range(0,51)
for i in s:
if i%3!=0:
print(i)
我看看喔
i = 1
while i < 51:
if i % 3 !=0:
print(i)
i += 1
yexing 发表于 2020-4-22 12:02
2行Ok,不过用的是for循环
第二个for之前为啥需要个 i 啊,求解释{:5_100:}
for i in range(1,50):
if i%3 !=0:
print(i)
貌似是这样吧
{:10_266:}{:10_266:}
number=1
while number<=50:
if number %3!=0:
print(number)
number+=1
else:
number+=1
可!
for i in range(1,51):
if i%3 == 0:
continue
else:
print(i)
感谢楼楼分享的练习题.赞赞赞!
代码弄丢了,以前写过。
强
{:5_109:}
感谢分享