random模块函数
摘要:random()随机浮点数,0.0<=x<1.0 randrange(10) 0-9整数 randrange(0,101,2) 0-100偶数 choice(list1) 序列list1中随机选一个 shuffle(list1) 序列西派,改变原序列 sample(list1,k=5) 不改变原序列
阅读全文
posted @ 2019-04-21 17:35
posted @ 2019-04-21 17:35
posted @ 2018-11-19 21:21