标签:
随机数和随机验证码
#!/usr/bin/env python # _*_ coding:utf-8 _* import random temp = ‘‘ for i in range(4): rm = random.randrange(0,3) if rm !=1: temp = temp + chr(random.randrange(65,90)) else: temp = temp + str(random.randrange(0,9)) print temp
random
标签:
原文地址:http://www.cnblogs.com/loveDayPin/p/4570486.html