。
import random import os print("1. Semi-triple (-)") print("2. Semi-triple (.)") print("3. Random semi-triple") print("4. Custom") sa = input("Choose: ") os.system("COLOR A") if sa == "1": print("Where is it?") print("1| (***)") print("2| (*)") print("3| ()") print("4| (**)") da = input("Choose: ") if da == "1": uesr = '' # Enter the user to be guessed between the dots chars2 = 'qwertyuiopasdfghjklzxcvbnm0123456789' # Numbers and characters if you want amount = input('How many usernames?') amount = int(amount) length2 = 3 length2 = int(length2) for password in range(amount): password = '' for item in range(length2): password = '' for item in range(length2): password += random.choice(chars2) bb = uesr + password print(bb) with open('user.txt', 'a') as x: x.write(bb + '\n') if da == "2": uesr = '' # Enter the user to be guessed between the dots chars2 = 'qwertyuiopasdfghjklzxcvbnm0123456789' # Numbers and characters if you want amount = input('How many usernames?') amount = int(amount) length2 = 3 length2 = int(length2) for password in range(amount): password = '' for item in range(length2): password = '' for item in range(length2): password = random.choice(chars2) for item in range(2): password1 = '' for item in range(2): password1 += random.choice(chars2) ba = password + uesr + password1 print(ba) with open('user.txt', 'a') as x: x.write(ba + '\n') if da == "3": uesr = '' # Enter the user to be guessed between the dots chars2 = 'qwertyuiopasdfghjklzxcvbnm0123456789' # Numbers and characters if you want amount = input('How many usernames?') amount = int(amount) length2 = 3 length2 = int(length2) for password in range(amount): password = '' for item in range(2): password = '' for item in range(2): password += random.choice(chars2) for item in range(1): password1 = '' for item in range(1): password1 += random.choice(chars2) bd = password + uesr + password1 print(bd) with open('user.txt', 'a') as x: x.write(bd + '\n') if da == "4": uesr = '' # Enter the user to be guessed between the dots chars2 = 'qwertyuiopasdfghjklzxcvbnm0123456789' # Numbers and characters if you want amount = input('How many usernames?') amount = int(amount) length2 = 3 length2 = int(length2) for password in range(amount): password = '' for item in range(3): password = '' for item in range(3): password += random.choice(chars2) for item in range(2): password1 = '' for item in range(2): password1 += random.choice(chars2) for item in range(1): password2 = '' for item in range(1): password2 += random.choice(chars2) be = password + uesr + password1 + password2 print(be) with open('user.txt', 'a') as x: x.write(be + '\n')
内容来源: tj/co