本文共 260 字,大约阅读时间需要 1 分钟。
改了很多次,终于成功运行(严格缩进很重要)
password = 12345count = 0while count < 3:print("请输入密码")password = int(input("password:"))if password == password:print("登陆成功")breakelse:print("输入错误")count = count + 1else:print("再见")转载于:https://blog.51cto.com/13615683/2092194