Commit 4643e813 by BellCodeEditor

save project

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