自编代码:
def count_para(*param):
coun = 0
for i in param:
coun += 1
num = 0; alph = 0; space = 0; other = 0
for j in list(i):
asc = ord(j)
if 47<asc<58: num += 1
elif 64<asc<91 or \
96<asc<123: alph += 1
elif asc == 32: space += 1
else:other += 1
print 'The no.',coun,'string has',num,'number,',\
alph,'letter,',space,'space and',other,'other letter.'