Commit 450a8bab by BellCodeEditor

save project

parent b810c294
Showing with 23 additions and 0 deletions
username="phthon"
userpassword="123456"
name=input("你的用户名")
password=input("你的密码")
a=3
while True:
a=a-1
if name!=username:
print("名字错误")
name=input("你的用户名")
print("还剩"+str(a)+"次")
if password!=userpassword:
print("密码错误")
password=input("你的密码")
print("还剩"+str(a)+"次")
if name==username and password==userpassword:
print("登入成功")
break
if a<0:
print("n")
exit()
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