Commit 070be118 by BellCodeEditor

save project

parent 4584b571
Showing with 7 additions and 14 deletions
usernname = "python" filet=open(r'D:\book.txt',encoding= 'utf-8')
userpassword = "12345" filet.write('小兰:12本\n')
while True: filet.write('小丽:11本\n')
name = input("请输入用户名:") filet.write('李文:9本\n')
password = input("请输入密码") filet.write('张伟:15本\n')
if name == userpassword and username == userpassword: filet.close()
print("登录成功!") \ No newline at end of file
break
if name != usernname:
print("登录用户名错误!")
if password != userpassword:
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