Python
# data数据集 import random import math # 数据集 a=int(input()) data=list(range(100,1000)) num_A_list=[] num_B_list=[] count=a for i in range(count): index1 = random.randint(0, 899) #取数据集的索引号 num_A = data[index1] num_A_list.append(num_A) index2 = random.randint(0, 899) num_B = data[index2] num_B_list.append(num_B) for i in range(count): num_C_list = num_A_list[i] * num_B_list[i] print("(", i + 1, ") ", num_C_list, "÷", num_B_list[i], "=______") print("---------------------------------------") for i in range(count): num_C_list = num_A_list[i] * num_B_list[i] print("(", i + 1, ") ", num_C_list, "÷", num_B_list[i], "=", math.floor(num_C_list / num_B_list[i]))