def generate_passwords(num_passwords, password_length): |
characters = string.ascii_letters + string.digits |
passwords = [] |
for _ in range(num_passwords): |
password = ''.join(random.choice(characters) for _ in range(password_length)) |
passwords.append(password) |
return passwords |
num_passwords = 10 | |
password_length = 8 |
passwords = generate_passwords(num_passwords, password_length) |
for i, password in enumerate(passwords, start=1): | |
print(f"assword {i}: {password}") |
欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) | Powered by Discuz! X3.4 |