# 随机生成两个数字,然后再输入一个指定的运算符,让两个数字执行对应的运算
# 随机生成数字需要引入random库
import random
a = random.randint(0,100)
b = random.randint(0,100)
i = input("请输入运算符:")
c = 0
if i == "+":
c = a + b
elif i == "-" and a > b:
c = a - b
elif i == "-" and a < b:
c = b - a
elif i == "*":
c = b * a
elif i == "/":
c = a / b
elif i == "%":
c = a % b
elif i == "//":
c = a // b
elif i == "==":
c = a == b
else:
print("输入错误")
print(c)