import random print(random.random()) #浮点数值 print(random.randint(1,2))#循环显示1,2 print(random.randrange(2,4))#2,3 print(random.uniform(1,3))#2.567080829457482
import random print(random.random()) #浮点数值 print(random.randint(1,2))#循环显示1,2 print(random.randrange(2,4))#2,3 print(random.uniform(1,3))#2.567080829457482