Commit 60b60b57 by BellCodeEditor

save project

parent 3bbbd673
Showing with 11 additions and 0 deletions
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
I = 3
name = input("请输入用户名:") name = input("请输入用户名:")
while name!=username: while name!=username:
print("用户名错误") print("用户名错误")
I-=1
print("你还可以登"+str(I)+"次")
if I==0:
print("不可登入")
exit()
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:") password = input("请输入密码:")
while password!=userpassword: while password!=userpassword:
print("密码错误") print("密码错误")
I-=1
print("你还可以登"+str(I)+"次")
if I==0:
print("不可登入")
exit()
password = input("请输入密码:") password = input("请输入密码:")
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
......
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