Python练习之-----随机验证码
2018-02-11 14:58
253 查看
#/usr/bin/python3 # -*- coding:UTF-8 -*- """ 随机生成一个验证码 """ import random checkCode = "" for i in range(4): current = random.randrange(0, 4) if current != i: temp = chr(random.randint(65, 90)) else: temp = random.randint(0, 9)) checkCode += str(temp) print(checkCode)
相关文章推荐
- Python小练习-生成随机验证码
- Python 随机生成中文验证码
- python生成随机验证码(中文验证码)示例
- 使用Python生成随机简单的验证码
- Python生成随机验证码
- python实战系列之生成随机验证码(三)
- Python 随机生成中文验证码
- python随机生成6位数验证码
- python在图片写文字,产生随机验证码序列号
- [Python] 使用python的随机验证码。
- python 随机生成验证码
- Python 随机生成中文验证码
- 利用python实现简单随机验证码
- python随机验证码函数
- python--random模块(产生随机值)、洗牌、验证码应用
- 利用Python生成随机4位验证码
- python PIL模块与随机生成中文验证码
- 如何利用python生成随机验证码?
- Python 随机生成中文验证码的实例代码
- Python 随机生成中文验证码的实例代码