摘要: Python中的random模块用于生成随机数。下面介绍一下random模块中最常用的几个函数。 随机生成4位数验证码: import random checkcode = '' for i in range(4): #因为是4位数的验证码,所以遍历4次 current = random.randr 阅读全文
posted @ 2016-02-22 21:21 编程青年的崛起 阅读(1191) 评论(0) 推荐(0) 编辑