#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Kxk
#作业1
#编写登陆接口
#输入用户名和密码
#认证成功后显示欢迎信息
#输错3次锁定
import getpass
guess_name = 'KXK'
guess_password = '33'
for i in range(3):
user_name = input("user_name:")
password = getpass.getpass("password:")
if user_name == guess_name and password == guess_password:
print("Welcom to our home!")
break
else:
print("Wrong!!!please try again!")