Commit 4643e813 by BellCodeEditor

save project

parent 2047ba7e
Showing with 9 additions and 0 deletions
i=3
username = "t" username = "t"
userpassword = "sb" userpassword = "sb"
while True: while True:
if i>0:
i=i-1
c=input("请输入账号") c=input("请输入账号")
m=input("请输入密码") m=input("请输入密码")
if username==c and userpassword==m: if username==c and userpassword==m:
...@@ -8,7 +11,12 @@ while True: ...@@ -8,7 +11,12 @@ while True:
break break
if username!=c: if username!=c:
print("账号错误") print("账号错误")
print("你还有"+str(i)+"机会")
continue continue
if userpassword!=m: if userpassword!=m:
print("密码错误") print("密码错误")
print("你还有"+str(i)+"机会")
else:
print("sb,滚")
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