Commit 070be118 by BellCodeEditor

save project

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