for a in lists:
for b in lists:
for c in lists:
if (a + b + c) % 3 == 0 and (a==5 or b==5 or c==5):
d = a*100 + b*10 + c
if d >100:
print(d)
n2=input('请输入橙子的数量')
s=int(n1)+int(n2)
print('计算结果为:',s)
运行结果截图
欢迎分享,转载请注明来源:内存溢出
for a in lists:
for b in lists:
for c in lists:
if (a + b + c) % 3 == 0 and (a==5 or b==5 or c==5):
d = a*100 + b*10 + c
if d >100:
print(d)
n2=input('请输入橙子的数量')
s=int(n1)+int(n2)
print('计算结果为:',s)
运行结果截图
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)