[python]代码库
import time
import random
one = random.randint(1, 26)
two = random.randint(1, 26)
listone = ["", "a", "A", "b", "B", "c", "C", "d", "D", "e", "E", "f", "F", "g", "G", "h", "H", "i", "I", "j", "J", "k", "K", "l", "L", "m", "M", "n", "N", "o", "O", "p", "P", "q", "Q", "r", "R", "s", "S", "t", "T", "u", "U", "v", "V", "w", "W", "x", "X", "y", "Y", "z", "Z"]
a = int(input("> Password:"));En = input("> English:")
b = input("> Do you want to show how to crack the code?(y/n)\n> ")
print("> Cracking the code...")
time.sleep(3)
z = 0
x = 1
while x == 1:
if b == "y":
print(">", z)
if z == a:
break
x = 2
z += 1
run = 1
while run == 1:
one = random.randint(-1, 52)
two = random.randint(-1, 52)
three = random.randint(-1, 52)
four = random.randint(-1, 52)
if b == "y":
print(f"> {listone[one]}{listone[two]}{listone[three]}{listone[four]}")
if listone[one] + listone[two] + listone[three] + listone[four] == En:
print("> The password is", F"{listone[one]}{listone[two]}{listone[three]}{listone[four]}{z}")
break
run = 2
中级程序员
by: zlqwerty123 发表于:2020-03-26 11:56:19 顶(0) | 踩(0) 回复
好玩
回复评论