Commit 9e56efdc by BellCodeEditor

save project

parent b864dcaf
Showing with 12 additions and 1 deletions
i=3
username = "250"
userpassword = "cbb"
while True:
if i>0:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
......@@ -8,7 +12,13 @@ while True:
break
if name != username:
print("sb!用户名!请重新输入")
else:
i=i-1
continue
if password != userpassword:
print("sb!密码错误!请重新输入")
i=i-1
else:
while True:
print("sb!")
break
print("欢迎来到cs编程!")
\ 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