Commit a17ff8ff by BellCodeEditor

auto save

parent 7eaed43a
Showing with 33 additions and 0 deletions
print('班级登记卡')
print('用户名:')
print('所属班级:')
print('验证码:3+5=?')
exit()
\ No newline at end of file
def jiage():
total = []
while True:
unit= input("str")
if unit== 'q':
break1
else:
total.append()
print(total)
jiage()
\ No newline at end of file
usename="python"
usepassword="123456"
while True:
name=input("请输入用户名:")
password=input("请输入密码:")
if name==usename and password==usepassword:
print("登录成功!")
break
if name!=usename:
print("用户名错误,请重新输入!")
if password!=usepassword:
print("密码错误,请重新输入!")
if name!=usename and password!=usepassword:
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