python2.7で0xfc,0x00=64512という結果から0xfc,0x00=-1024という結果にしたいです。
該当のソースコード
int.from_bytes(b'\xfc\x00', byteorder='big', signed=True)
というコードを入れてみたのですが
発生している問題・エラーメッセージ
AttributeError: type object 'int' has no attribute 'from_bytes'
と帰ってきます。
投稿2018/06/28 17:08
python2.7で0xfc,0x00=64512という結果から0xfc,0x00=-1024という結果にしたいです。
int.from_bytes(b'\xfc\x00', byteorder='big', signed=True)
というコードを入れてみたのですが
AttributeError: type object 'int' has no attribute 'from_bytes'
と帰ってきます。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。