import random
print("-- -- --\\\|口算大师|///-- -- --")
while True:
c = random.randint(1, 3)
if c==1:
a = random.randint(1, 10)
b = random.randint(1, 10)
user_input = input(str(a) + "+" + str(b) + "=")
if user_input == str(a + b):
print("你好聪明啊~")
else:
print("sb,真菜啊")
elif c==2:
a = random.randint(1, 10)
b = random.randint(1, 10)
user_input = input(str(a) + "-" + str(b) + "=")
if user_input == str(a - b):
print("你好聪明啊~")
else:
print("sb,真菜啊")
elif c==3:
a = random.randint(1, 10)
b = random.randint(1, 10)
user_input = input(str(a) + "*" + str(b) + "=")
if user_input == str(a * b):
print("你好聪明啊~")
else:
print("sb,真菜啊")