日期:2014-05-18 浏览次数:20928 次
byte[] bytes = BitConverter.GetBytes(0xb);
foreach(byte b in bytes)
{
Console.Write(Convert.ToString(b,2));
//1011,0000,0000,0000
}
------解决方案--------------------
好不容易坐个SF,fuck 还发错了.哈哈
Response.Write(Convert.ToString(Convert.ToInt32("B", 16), 2).PadRight(8, '0'));
------解决方案--------------------
0x0B = 0000 1011 ASCII "B" = 0x42 = 0100 0010
------解决方案--------------------
十六进制B
1011
只有8位