标签:and 多少 bsp print pre else while int i+1
还是一筐鸡蛋
1个1个拿完
2个2个拿剩1个
3个3个拿剩1个
4个4个拿剩1个
5个5个拿剩1个
6个6个拿剩1个
7个7个拿拿完
问有多少个鸡蛋
i=0
while True:
if (i%1==0) and (i%2==1) and (i%3==1) and (i%4==1) and (i%5==1) and (i%6==1) and (i%7==0):
print(i)
i=i+1
else:
i = i + 1
标签:and 多少 bsp print pre else while int i+1
原文地址:http://www.cnblogs.com/wwryez/p/6366195.html