代码如下:
hash_result = hashlib.sha3_256(encode(str(header) + str(nonce))).hexdigest()
报错信息如下:
TypeError: object supporting the buffer API required
请问如何解决这个问题?
代码如下:
hash_result = hashlib.sha3_256(encode(str(header) + str(nonce))).hexdigest()
报错信息如下:
TypeError: object supporting the buffer API required
请问如何解决这个问题?