print("今有物不知其数,三三数之剩二,五五数之剩三,七七数之剩二,问几何?\n")
number=int(input("请输入你认为符合条件的数:"))
if number%3==2 and number%5==3 and number%7==2:
print(number,"符合条件")
else:
print(number,"不符合条件")
print("在许多款游戏中,等级越高,代表玩家越厉害。\n")
print("但是不同的等级代表的玩家称呼是不一样的\n")
number=int(input("输入您目前所处的等级,系统会告诉您:"))
if number==1:
print("小白")
elif number==10:
print("普通玩家")
elif number==50:
print("进阶玩家")
elif number==100:
print("高阶玩家")
elif number==999:
print("大神")
else :
print("战力爆表,系统崩溃!!!")
print("道路千万条,安全第一条。\n行车不规范,亲人俩行泪。")
proof=int(input("请输入每100ml血液的酒精含量:"))
if proof<20:
print("您还不构成饮酒行为,可以放心开车,请注意安全!")
else:
if proof<80:
print("您已达到酒后驾驶标准,请不要开车!!")
else:
print("您已达到醉酒驾驶标准,千万不要开车!!!")
print("今有物不知其数,三三数之剩二,五五数之剩三,七七数之剩二,问几何?")
none=True
number=0
while none:
number+=1
if number%3==2 and number%5==3 and number%7==2:
print("答曰:此数为",number)
nine=False
print("今有物不计其数,三三数之剩二,五五数之剩三,七七数之剩二,问几何?\n")
for number in range(1,100):
if number%3 == 2 and number%5 == 3 and number%7 == 2:
print("是这个数",number)
for i in range(1,10):
for j in range(1,i + 1):
print(str(j) + "x" +str(i) + "=" +str(i * j) + "\t",end='')
print('') #换行
print("今有物不知其数,三三数之剩二,五五数之剩三,七七数之剩二,问几何?\n")
for number in range(50):
if number%3 == 2 and number%5 == 3 and number%7 == 2:
print("答曰:这个数是",number)
break
total = 99
for number in range(1,100):
if number % 7 == 0:
continue
else:
string = str(number)
if string.endswith('7'):
continue
total -= 1
print("从1数到99共拍腿",total,"次。")
标签:9.21,number%,number,else,range,剩二,print From: https://www.cnblogs.com/cah666/p/16719405.html