1
文字列データ型変数のcrc32を取得しようとしましたが、次のエラーが発生しました。あなたには、いくつかのデータのCRC32を計算している場合は、文字列の場合Python3文字列のcrc32を見つける
>>> message='hello world!'
>>> import binascii
>>> binascii.crc32(message)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: a bytes-like object is required, not 'str'
はそれがbinascii.crc32(b'hello world!')
で行うことができますが、私は文字列変数のデータ型のためにこれを行う方法を知っていただきたいと思い値