那么,将一个单词分割成两个字节的最快方法是什么呢?short s = 0x3210;char c2 = s & 0x00ff;short s = 0x3210;charc2 = (s << 8) >> 8;怎么样char* c = (char*)&s; // where c1 = c[0] and c2 = c[
我的问题的一个具体例子是,“在这个例子中,我如何获得'3210‘?”> foo = '0123456''0123''6543210'
>>> foo[4:0:-1] # I was shooting for '3210' but made a fencepost error, that's fine, but