摘要:
# 可以支持多个用户登录 (提示,通过列表存多个账户信息) uname = ['wps', 'opp' ] pword = ['123','1234'] time = 0 while time < 3: u_name = input("用户名:") if u_name in uname: p_word = input("密码:") if p_wo... 阅读全文
摘要:
让用户输入用户名密码 认证成功后显示欢迎信息 输错三次后退出程序 times = 0 while times <= 3: user_a = input("用户名:") password_a = input("密码:") if user_a == "wps" and password_a == "123456": print("欢迎【" + user_a ... 阅读全文