Код: Выделить всё
PassWord = random.randint(0,9999)
Код: Выделить всё
import random
PassWord = str(random.randint(0,9999))
Trial = ' '
while Trial != PassWord:
Trial = str(random.randint(0,9999))
print(Trial)
if Trial == PassWord:
print('The password is: '+PassWord)
input()
Подробнее здесь: https://stackoverflow.com/questions/113 ... rce-script
Мобильная версия