根据@nneonneo的回答,这是一个模拟to_bytes API的函数: def to_bytes(n, length, endianess='big'): h = '%x' % n s = ('0'*(len(h) % 2) + ...
確定! 回上一頁