标签:class encode span path print open sts style bsp
1 #计算文件的CRC32值 2 import sys 3 import zlib 4 import os.path 5 filename=sys.argv[1] 6 print(filename) 7 if os.path.isfile(filename): 8 fp=open(filename,‘rb‘) 9 contents=fp.read() 10 fp.close() 11 print(zlib.crc32(contents.encode())) 12 else: 13 print(‘file not exists‘)
标签:class encode span path print open sts style bsp
原文地址:http://www.cnblogs.com/cmnz/p/7003976.html