import re
a = u"aAbccfds*2345234你好"
def statistics(s):
--------r = re.findall("[A-Z]", s)
----capital = len(r)
----r = re.findall("[a-z]", s)
----lowercase = len(r)
----r = re.findall("[0-9]", s)
----num = len(r)
----elseword = len(s) - capital - lowercase - num
----return (capital, lowercase, num, elseword)
print statistics(a)
a = u"aAbccfds*2345234你好"
def statistics(s):
--------r = re.findall("[A-Z]", s)
----capital = len(r)
----r = re.findall("[a-z]", s)
----lowercase = len(r)
----r = re.findall("[0-9]", s)
----num = len(r)
----elseword = len(s) - capital - lowercase - num
----return (capital, lowercase, num, elseword)
print statistics(a)