原来C#可以直接写二进制数的 二进制数在C#中的写法: byte b=0b01111110 二进制字符串的解释: string bstr="0111110"; byte b=Convert.ToByte(bstr,2) //b=126