#!/usr/bin/env python3
#-*- coding:utf-8 -*-
import datetime
nowtime = datetime.date.today()
count = 0
while count < 3:
name = input("请输入您的用户名:")
pwd = input("请输入您的密码:")
welcome = '欢迎%s登录,今天是%s'%(name,nowtime)
count += 1
if name == 'shasha' and pwd == '123456':
print(welcome)
break
elif name.isspace() or pwd.isspace():
print("用户名或密码不能为空!")
continue
elif name != 'shasha' or pwd != '123456':
print("用户名或密码错误!")
continue
else:
print("出错次数太多")