Ai
1 Star 0 Fork 0

Role/Python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Aakanksha 506 Bytes
一键复制 编辑 原始数据 按行查看 历史
Aakanksha 提交于 2020-10-14 21:54 +08:00 . Create Password Checker
import time
pwd="AKS2608" #any password u want to set
def IInd_func():
count1=0
for j in range(5):
a=0
count=0
user_pwd = input("") #password you remember
for i in range(len(pwd)):
if user_pwd[i] == pwd[a]: #comparing remembered pwd with fixed pwd
a +=1
count+=1
if count==len(pwd):
print("correct pwd")
break
else:
count1 += 1
print("not correct")
if count1==5:
time.sleep(30)
IInd_func()
IInd_func()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/CRole/Python.git
git@gitee.com:CRole/Python.git
CRole
Python
Python
master

搜索帮助