转载:https://blog.csdn.net/mikasoi/article/details/84311620
1 unsigned char low_four, high_four; 2 high_four = (byte & 0xf0) >> 4; 3 low_four = byte & 0x0f;