生成以下算术难题。
< 生成随机整数的API>
import random

# 生成两个随机整数
num1 = random.randint(1, 100)
num2 = random.randint(1, 100)

# 生成随机加减乘除运算符
operator = random.choice(['+', '-', '*', '/'])

# 根据运算符生成算术式
if operator == '+':
    result = num1 + num2
    problem = f"{num1} + {num2} = ?"
elif operator == '-':
    result = num1 - num2
    problem = f"{num1} - {num2} = ?"
elif operator == '*':
    result = num1 * num2
    problem = f"{num1} × {num2} = ?"
else:
    result = round(num1 / num2, 2)
    problem = f"{num1} ÷ {num2} = ?"
    
print(problem)