我不知道为什么,但它正在猜测密码,但当它猜测正确时,它并没有结束程序。任何帮助深表感谢!
#imports
import time, random
#Welcome
print("Welcome to Password Guess!")
pass1 = input("Please insert your phone password:")
#Start system
guessclock = 0
start1 = 1
i = 1
while i < 2:
while i < 2:
guess1 = random.randint(1, 2)
guessclock += 1
print(guess1)
if pass1 == guess1:
i = 3
print("Password guessed")
print("It took", guessclock)
print("Attempts")
繁星淼淼
蛊毒传说
相关分类