import hmac, hashlib print(hmac.new(bytes([]), bytes([]), hashlib.sha1).hexdigest())
在Python2.7上: 1bd590e48bea8f0c8cc70602bc55d317c3de7c52
1bd590e48bea8f0c8cc70602bc55d317c3de7c52
在Python3.7上: fbdb1d1b18aa6c08324b7d64b71fb76370690e1d
fbdb1d1b18aa6c08324b7d64b71fb76370690e1d