代码如下: 1importrandom23n =04sum =05whilen < 10:6num = random.randint(1, 100)7sum = sum +num8n += 19print(num, end=",")10print()11print("10个数的和为:%d"%sum)12print("10个数的平均值为:%.2f"% (sum / 10)) 运行结果:...