Linxing
0.85D
V2EX  ›  问与答

请教下用 Python 如何实现这段代码

  •  
  •   Linxing · Mar 13, 2018 · 2334 views
    This topic created in 2994 days ago, the information mentioned may be changed or developed.
    public static byte[] marshallInt(int num,int length) {//marshall int
    byte[] byteStream = new byte[length];
    for (int i = 0; i < length; i++) {
    byteStream[i] = (byte) (num >>> ((length-1)*8 - i * 8));
    }
    return byteStream;

    困扰了我一天了 还没有解决 谢谢了
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5300 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 01:17 · PVG 09:17 · LAX 18:17 · JFK 21:17
    ♥ Do have faith in what you're doing.