Commit 237b0e4a by BellCodeEditor

save project

parent 5829012e
Showing with 7 additions and 2 deletions
...@@ -2,6 +2,7 @@ q = 3 ...@@ -2,6 +2,7 @@ q = 3
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
while True: while True:
if q>0:
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:") password = input("请输入密码:")
q -= 1 q -= 1
...@@ -10,9 +11,12 @@ while True: ...@@ -10,9 +11,12 @@ while True:
break break
if name != username: if name != username:
print("名字有问题") print("名字有问题")
print("nhaiy"+str(q)+"min")
if password != userpassword: if password != userpassword:
print("密码有问题") print("密码有问题")
if q == 0 print("nhaiy"+str(q)+"min")
else: else:
print("nsb") print("nsb")
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