代码示例:(标识:python_numpy_random_float)
python_numpy_random_float.py
from numpy import random

x = random.rand()

print(x)
运行结果: