人生苦短,我用 Python。
Python 3 实现:
from zlib import crc32 s = 'hello world' print( crc32(s.encode('utf-8')) )
运行结果为:
222957957
( 本文完 )
打开微信,扫码阅读本文