Commit 58d1432e by BellCodeEditor

save project

parent ec589c0f
Showing with 16 additions and 11 deletions
usename = "python"
password = "123456"
while True:
us = input("请输入您的用户名:")
if us != usename :
print("用户名不正确,请重新输入!")
continue
ps = input("请输入您的密码:")
if ps != password :
print("密码不正确,请重新输入!")
continue
if (us == usename)and(ps == password):
print("用户名,密码正确")
\ No newline at end of file
if i>0:
us = input("请输入您的用户名:")
if us != usename :
print("用户名不正确,请重新输入!")
continue
ps = input("请输入您的密码:")
if ps != password :
print("密码不正确,请重新输入!")
continue
if (us == usename)and(ps == password):
print("用户名,密码正确")
break
else:
print("您的账户已被锁定,请拿证件")
exit()
\ 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