Commit e19044ca by BellCodeEditor

save project

parent 450a8bab
Showing with 6 additions and 5 deletions
username="phthon" username="phthon"
userpassword="123456" userpassword="123456"
name=input("你的用户名")
password=input("你的密码")
a=3 a=3
while True: while True:
if a>0:
name=input("你的用户名")
password=input("你的密码")
a=a-1 a=a-1
if name!=username: if name!=username:
print("名字错误") print("名字错误")
name=input("你的用户名")
print("还剩"+str(a)+"次") print("还剩"+str(a)+"次")
continue
if password!=userpassword: if password!=userpassword:
print("密码错误") print("密码错误")
password=input("你的密码")
print("还剩"+str(a)+"次") print("还剩"+str(a)+"次")
continue
if name==username and password==userpassword: if name==username and password==userpassword:
print("登入成功") print("登入成功")
break continue
if a<0: if a<0:
print("n") print("n")
exit() exit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment