Python里面如何生成随机数?

 

import random
random.random()
它会返回一个随机的0和1之间的浮点数

posted @ 2019-07-25 12:34  anobscureretreat  阅读(537)  评论(0编辑  收藏  举报