📅  最后修改于: 2022-03-11 14:46:33.002000             🧑  作者: Mango
代码示例1
import random
total = 0
for i in range(10):
number = 1 + random.random()*4
print(number)
total += number
print("Average =", total / 10)