Commit 9154ce70 by BellCodeEditor

save project

parent 960dbfb2
Showing with 8 additions and 0 deletions
...@@ -2,11 +2,19 @@ username="xxx" ...@@ -2,11 +2,19 @@ username="xxx"
userdassword="123456" userdassword="123456"
while True: while True:
name=input("xxxx") name=input("xxxx")
i=0
dassword=input("1111") dassword=input("1111")
if i<=3:
if username==name and userdassword==dassword: if username==name and userdassword==dassword:
print("c ") print("c ")
break break
i=i+1
elif username!=name: elif username!=name:
print("用户名错了") print("用户名错了")
i=i+1
else: else:
print("账号错误") print("账号错误")
i=i+1
else:
print("bb ")
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