Commit 6df0156e by BellCodeEditor

save project

parent 6fd429cc
Showing with 16 additions and 0 deletions
user='python'
userpassword="1223"
a=input("用户名:")
b=input("密码:")
while True:
if a==user and b==userpassword:
print("登录成功!")
break
if a!=user:
print("用户名错误!请重新输入!")
a=input("用户名:")
if b!=userpassword:
print("密码错误!请重新输入!")
b=input("密码:")
print("welcome!")
\ 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