Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import os
- chars = '+-/*!&$#?=@<>abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
- number = int( input( 'Кол-во паролей: ' ) )
- lenght = int( input( 'Длина строки: ' ) )
- for x in range( number ):
- password = ''
- for i in range( lenght ):
- password += random.choice( chars )
- print( password )
- file = open( 'password.txt', 'a' )
- file.write( '\n' + password )
- file.close()
- # Закрытие программы при нажатии клавиши в консоли
- os.system( 'pause' )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement