python生成随机验证码
2017-02-24 11:47
302 查看
#!/usr/bin/env python #-*- coding:utf-8 -*- import random code = [] for i in range(0,6): if i == random.randint(0,6): code.append(str(i)) else: M = (random.randint(65,90)) code.append(str(chr(M))) print(''.join(code))
相关文章推荐
- Python 随机生成中文验证码
- Python生成随机验证码的两种方法
- Python3 生成一个随机验证码
- Python生成随机验证码
- Python 随机生成中文验证码(转载)
- 如何利用python生成随机验证码?
- Python 生成随机验证码
- Python随机生成验证码的两种方法
- Python生成随机验证码
- python随机生成一个6位的验证码
- 随机验证码生成(python实现)
- python实战系列之生成随机验证码(三)
- 学习python:实例2.用PIL生成随机验证码
- Python 随机生成中文验证码
- 用Python生成随机的中文验证码图片
- python PIL模块与随机生成中文验证码
- python PIL模块与随机生成中文验证码
- Python随机生成验证码的两种方法
- python随机生成6位数验证码
- python 之随机生成6位数验证码