#encoding=utf-8
#-------------------------------------------------------------------------------
# name: 模块1
# purpose:
#
# author: administrator
#
# created: 10-06-2014
# copyright: (c) administrator 2014
# licence:
#-------------------------------------------------------------------------------
import re
def checklen(pwd):
return len(pwd)>=8
def checkcontainupper(pwd):
pattern = re.compile('[a-z]+')
match = pattern.findall(pwd)
if match:
return true
else:
return false
def checkcontainnum(pwd):
pattern = re.compile('[0-9]+')
match = pattern.findall(pwd)
if match:
return true
else:
return false
def checkcontainlower(pwd):