import random
number = 2 #生成密码数量
length = 12 #生成密码长度
print('''
Password Generator
==================
''')
chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@£$%^&*().,?0123456789'
print('\nhere are your passwords:')
for pwd in range(number):
password = ''
for c in range(length):
password += random.choice(chars)
print(password)
网友评论