标签:div use 错误 while循环 html 循环 else 用户登录 htm
i=0 while i<3: username = input(‘请输入你的用户名:‘).strip() password = input(‘请输入你的密码:‘).strip() if username == ‘‘ or password == ‘‘: print(‘用户名输入不能为空‘) elif username =="xiaozhou" and password ==‘123456‘: print(‘恭喜登录成功‘) break else: print(‘用户名或密码错误‘) i+=1 else: print(‘输入次数达到上限‘)
标签:div use 错误 while循环 html 循环 else 用户登录 htm
原文地址:https://www.cnblogs.com/lily-20141202/p/10013085.html