我必须计算md5、.jar.sha1等文件的数量。md5可以算数,但sha1似乎不算数。jar.sha1"): count += 1 目录现在在Windows中,但将来将在Linux谢谢 编辑 到目前为止,我的代码如下: for path in paths_string:
for root, directories, files in os.walk(path):for
我们的Linux服务器上有PostgreSQL数据库。DATABASE graphite WITH OWNER graphite'psql: FATAL: no pg_hba.conf entry for host "[local]", user "root", database "root", SSL offlocal
因此,在Linux中(Fedora 12,Python2.6.2和Python2.7.1是我自己编译的,因为我还没有在yum中找到一个rpm )要慢得多,对于小于1gb的文件几乎是一分钟。和我能做些什么来提高Linux?的性能吗?import hashlib for f in files: h = open(os.path.join(root,f), "r")
#ca