"""用python设计第一个密码识别系统"""
counts = 3
answer = 123456
while counts > 0:
temp = input("请输入密码:")
guess = int(temp)
if guess == answer:
print("输入正确,正在运行系统")
break
else:
print("输入错误")
counts = counts - 1
else:
print("已输入三次错误密码,请重新启动程序")
密码识别系统
最新推荐文章于 2024-09-09 00:00:00 发布