random.random()生成0和1之间的随机浮点数float 例如: print ("random 7 is ", random.random()) 运行结果为: random 7 is 0.32383276483316237