|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
temp = input('please,enter your password')
password = 'fucking python'
time = 2
while time >= 1:
if temp == password:
print('you are right,system are loading')
break
elif not '*'in temp:
print('you are wrong and you only have',time,'chances')
temp = input('please try again ')
time -=1
else:
print('* is not allowed appearing in the password and you have',time,'chances')
temp = input('plesase, try again without *')
if time = 0:
print('self-destruct system activated')
为啥if time = 0 这个不行
|
|