print("今有物不知其数,三三数之生剩二,五五数之剩三,七七数之剩二,问几何?\n")
# 输入一个数
number = int(input("请输入您认为符合条件的数:"))
# 判断是否符合条件
if number%3 ==2 and number%5 == 3 and number%7 == 2 :
print(number,"符合条件:三三之数剩二,五五之数剩三,七七之数剩二")
print("今有物不知其数,三三数之剩二,五五数之剩三,七七数之剩二,问几何?\n")
number = int(input("请输入瑛姑给的数:"))
if number%3 == 2 and number%5 == 3 and number%7 == 2:
print(number,"符合条件")
else:
print(number,"不符合条件")
print("在古希腊文化中,玫瑰集爱情与美丽于一身,所以人们常用玫瑰来表达爱情。")
print("但是不同朵数的玫瑰花表达的含义是不同的。\n")
number = int(input("输入您想送几朵玫瑰花,小默会告诉您含义:"))
if number == 1:
print("1朵:你是我的唯一!")
elif number == 3:
print("3朵:I Love You!")
elif number == 10:
print("10朵:十全十美!")
elif number == 99:
print("99朵:天长地久!")
elif number == 108:
print("108朵:求婚!")
else:
print("小默也不知道了!可以考虑1朵,3朵,10朵,99朵或108朵哟!")
print("\为了您和他人的安全,严禁酒后开车!\n")
proof = int(input("请输入每100毫升血液的酒精含量:"))
if proof < 20:
print("\n您还不构成饮酒行为,可以开车,但要注意安全!")
else:
if proof < 80:
print("\n已经达到酒后驾驶标准,请不要开车!")
else:
print("\n已经达到醉酒驾驶标准,千万不要开车!")
print("今有物不知其数,三三数之剩二,五五数之剩三,七七数之剩二,问几何?\n")
none = True
number = 0
while none:
number += 1
if number%3 ==2 and number%5 == 3 and number%7 == 2:
print("答曰:这个数是",number)
none = False
print("今有物不知其数,三三数之剩二,五五数之剩三,七七数之剩二,问几何?\n")
for number in range(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) + "*" + str(i) + "=" + str(i * j) + "\t",end='')
print('')
rint("今有物不知其数,三三数之剩二,五五数之剩三,七七数之剩二,问几何?\n")
for number in range(100):
if number%3 ==2 and number%5 == 3 and number%7 ==2:
print("答曰:这个数是",number)
break
for i in range(-9,0):
for j in range(1,-i+1):
print(str(j) + "*" +str(-i) + "=" + str(-1*i*j) + "\t",end='')
print('')
标签:777,number%,number,range,剩二,str,print From: https://www.cnblogs.com/6666j/p/16732884.html