#!/usr/bin/env pythonpython
# coding:utf-8ide
__author__ = "lvah"測試
'''spa
@author:linweiblog
@file:linwei.pyutf-8
@contact:xc_123456789@qq.comget
@time:6/26/179:33 AMinput
@descit
'''io
i = 0
for i in range(0, 3):
username = raw_input("user:")
password = raw_input("password:")
if (username == 'root') and (password == 'redhat'):
print (" ")
print ("welcome to user manage system")
break
elif (username != 'root') or (password != 'redhat'):
print ("密碼錯誤,請從新輸入")
i = i + 1
else:
print (" ")
print ("你已經登錄過三次請10分鐘後再登錄")
測試