提前致谢, 约什
import time
passwordx = float(input('create your password'))
def password():
passwordx
if passwordx>9999:
print('password is wrong\n innitiating shutdown')
x=5
time.sleep(1)
print(x)
x-=1
time.sleep(1)
print(x)
x-=1
time.sleep(1)
print(x)
x-=1
time.sleep(1)
print(x)
x-=1
time.sleep(1)
print(x)
x-=1
time.sleep(1)
print(x)
x-=1
quit()
else:
print('code saved')
x=1
while x <1000:
print('###############')
x+=1
def login():
passwordguess = float(input('please enter password'))
if passwordguess == passwordx:
print('access granted')
else:
print('wrong')
print('here\'s a clue', (passwordx-passwordguess)**2)
login()
password()
login()
答案 0 :(得分:-1)
一些一般性事项: