您可以将其视为编码(特定于Python 2):
>>> int('f483'.enpre('hex'), 16)1714698291或在Python 2和Python 3中:
>>> int(precs.enpre(b'f483', 'hex'), 16)1714698291
优点是字符串不限于特定的大小假设。缺点是它是未签名的。

您可以将其视为编码(特定于Python 2):
>>> int('f483'.enpre('hex'), 16)1714698291或在Python 2和Python 3中:
>>> int(precs.enpre(b'f483', 'hex'), 16)1714698291
优点是字符串不限于特定的大小假设。缺点是它是未签名的。