Commit 4643e813 by BellCodeEditor

save project

parent 2047ba7e
Showing with 9 additions and 0 deletions
i=3
username = "t"
userpassword = "sb"
while True:
if i>0:
i=i-1
c=input("请输入账号")
m=input("请输入密码")
if username==c and userpassword==m:
......@@ -8,7 +11,12 @@ while True:
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