python2.7でint.from_bytesは使えるのですか?
使ってみると以下のエラーが出ます。
発生している問題・エラーメッセージ
AttributeError: type object 'int' has no attribute 'from_bytes'
該当のソースコード
python
1>>> int.from_bytes(b'\x00\x10', byteorder='big')

回答1件
あなたの回答
tips
プレビュー
投稿2018/06/28 16:29
python2.7でint.from_bytesは使えるのですか?
使ってみると以下のエラーが出ます。
AttributeError: type object 'int' has no attribute 'from_bytes'
python
1>>> int.from_bytes(b'\x00\x10', byteorder='big')
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/06/28 16:40
2018/06/28 16:46