python练习

来源:互联网 发布:南瑞信通 知乎 编辑:程序博客网 时间:2024/06/05 23:52



#!/usr/bin/env python
# coding:utf-8
_author_ = "tom"

'''
@author:houruiyun
@file:2.py
@contact:674211605.qq.com
@time:6/25/172:45 AM
@desc:
'''
for i in range(1,4):
    name = raw_input('please input your name:')
    password = raw_input('your password:')
    if  (name == 'root' and password == 'westos'):
        print 'welcome to user manager system'
        exit (0)
    else:
        print 'the user and password is not matching'
print ('你已经登陆过三次,请十分钟后登陆')




原创粉丝点击