Commit 4643e813 by BellCodeEditor

save project

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