2009年2月2日
摘要: 转载自:http://blog.chinaunix.net/u1/43271/showart_373575.html 随机整数:>>> import random>>> random.randint(0,99)21随机选取0到100间的偶数:>>> import random>>> random.randrange(0, 101, 2)42随机浮点数:>>> import random>>> ra... 阅读全文
posted @ 2009-02-02 18:16 sislcb 阅读(13528) 评论(1) 推荐(0)