dudaguo
发表于 2020-5-31 21:19:42
i = 0
while i <= 30:
i += 1
a =(i-2,i-1,i)
if i % 3 == 0:
print(a)
poppinzer
发表于 2020-6-2 03:42:11
1
yjf0708
发表于 2020-6-3 19:58:51
i = 1
while i <= 30:
j = i + 1
k = j + 1
print(i,j,k)
i = k + 1
乙冗
发表于 2020-7-17 17:54:32
i = 0
while i <28:
print(tuple(range(i+1,i+4)))
i += 3
夶夶
发表于 2020-7-30 14:25:43
{:5_108:}
aironeng
发表于 2020-12-9 09:12:24
学习
tyh1995
发表于 2021-5-20 10:51:32
元组不可改变,不能像列表一样进行追加append(),移除remove()操作 ,题目不是输出三个数字的元组吗?参考答案变成列表了
自用化程度高
发表于 2021-9-12 15:25:50
111
sxh_nanjo
发表于 2021-9-16 16:11:48
{:5_102:}
YYXC1993
发表于 2021-10-15 10:28:09
答案
YYXC1993
发表于 2021-10-15 10:34:13
##n = 1
##while n <= 30:
## print(n,n+1,n+2)
## n += 3
for n in range(1,30,3):
print((n,n+1,n+2))
Vig晴朗
发表于 2021-10-16 12:44:41
i = 1
while i+2 < 31:
print(tuple())
i += 3
moimoi
发表于 2023-2-22 20:17:50
i=1
while i<=30:
print(( i,i+1,i+2))
i+=3