Commit e19044ca by BellCodeEditor

save project

parent 450a8bab
Showing with 19 additions and 17 deletions
username="phthon" username="phthon"
userpassword="123456" userpassword="123456"
name=input("你的用户名")
password=input("你的密码")
a=3 a=3
while True: while True:
a=a-1 if a>0:
if name!=username: name=input("你的用户名")
print("名字错误") password=input("你的密码")
name=input("你的用户名") a=a-1
print("还剩"+str(a)+"次") if name!=username:
if password!=userpassword: print("名字错误")
print("密码错误") print("还剩"+str(a)+"次")
password=input("你的密码") continue
print("还剩"+str(a)+"次") if password!=userpassword:
if name==username and password==userpassword: print("密码错误")
print("登入成功") print("还剩"+str(a)+"次")
break continue
if a<0: if name==username and password==userpassword:
print("n") print("登入成功")
exit() continue
if a<0:
print("n")
exit()
print("欢迎来到贝尔编程") print("欢迎来到贝尔编程")
\ No newline at end of file
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