python 员工管理_python实现员工管理系统

#!/usr/bin/env python

# _*_ coding:utf-8 _*_

import sys

import os

#系统的用户登录

#os.system('clear')

time = 0

while True: #this is login

if time < 3:

name = raw_input(" 33[1mplease input your login account:").strip()

passwd = raw_input(" 33[1mplease input your login password:").strip()

if len(name) == 0: #.strip()意为去除空格

print(" 33[31mIt's not allow empty input!n")

continue

elif name == 'zhangjun' and passwd == '123.com':

print(" 33[32mYour account and password right!")

pass

else:

print(" 33[31mYour account or password error!")

time += 1

continue

break

else:

print(" 33[31mYou are wrong three times, has already quit from the system!")

sys.exit()

#系统的选择界面

#os.system('clear')

print ('n')

def display(): #进行登陆后界面的函数定义,方便在下面的选用层级后,返回上一层时,依然可以看到选择大屏。

print(" 33[34m########################################################################")

print(" 33[34mt######### 33[1;32mWelcome to this employee search system! 33[0;34m #########")

print(" 33[34mtt#################################################")

print("n")

print(" 33[32m 33[1mttt1 33[33m 33[1m.Search.(you can search the infomation for employee!)n")

print(" 33[32m 33[1mttt2 33[33m 33[1m.Add.(Add a user into this employee system!)n")

print(" 33[32m 33[1mttt3 33[33m 33[1m.Delete.(Delete a user from this employee system!)n")

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值