Python如何生成随机验证码?#Python2022-04-18 09:12分类:Python 0 条评论 请先 登录 后评论 默认排序 时间排序 1 个回答|267 次阅读 2022-04-18 09:12 Coco老师 - 官方公众号:青少儿编程学习网 擅长:编程教育 • 网站:https://kidscodes.cn/import randomcheckcode = ''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) 请先 登录 后评论