首页 > TAG信息列表 > randomCode

产生随机密码的脚本

import random from turtle import st from unittest import result def randomCode():     data=''     code=''     for i in range(10):         data += str(i)     for i in range(ord('a'),ord('z')+1):         data += chr(

生成6位数字验证码

@Test public void randomCodeTest() { Random random = new Random(); for (int i = 0; i < 10000; i++) { int randomNum = random.nextInt(1000000); String randomCode = String.format("%06d", randomNum)