标签:print password 用户名 else use inpu user log word
username = "jyx,alex,zms" password = "123,456,789" count = 0 while True: if count < 3: name = input("用户名:") passwd = input("密码:") if name == username and password ==passwd: print("登陆成功") break else: print("登陆失败") count += 1 else: print("用户锁定") break
标签:print password 用户名 else use inpu user log word
原文地址:http://www.cnblogs.com/Jiayongxu/p/6685579.html