我正在尝试使我的项目python2.7和3兼容,而python 3具有内置方法int.from_bytes.是否存在python 2.7中的等价物,或者说这个代码2.7和3兼容的最佳方法是什么?
>>> int.from_bytes(b"f483", byteorder="big") 1714698291
python compatibility python-2.7
compatibility ×1
python ×1
python-2.7 ×1