getattr的疑问 getattr的描述如下:
Return the value of the named attributed of object. name must be a string. If the string is the name of one
of the object’s att ...
关于正则表达式的疑问 import re
text='This is some text -- with punction'
regex=re.compile(r'(\bt\w+)\W+(\w+)')
print 'pattern :',regex.pattern
match=regex.se ...
统计路径下的文件类型,请看下错误原因呢 if [ $# -ne 1 ];
then
echo $0 basepath
echo
fi
path=$1
declare -A statarray;
while read line;
do
ftype=`file -b "$line"`
let statarray[$f ...