#!/usr/bin/env python#coding:utf-8"""
file: userlogin.py
date: 2017-08-24
author:lijian
desc:
"""
User_Name = "root"
Password = "westos"print"Please input your username and password !"for i in range(1,5):
if i < 4 :
In_User_Name = raw_input("username : ")
In_Password = raw_input("password : ")
if User_Name == In_User_Name:
if Password == In_Password:
print"login ok"print"\n"
exit(0)
else:
print"password is no ok !"print"\n"else:
print"user is not exist ! "print"\n"else :
print"count is bigger than 3 !"